Maya and Visual Studio 2010 Debugging

161 views
Skip to first unread message

Rishis3D

unread,
Oct 13, 2013, 3:50:41 AM10/13/13
to python_in...@googlegroups.com
hi guys,

I learning Maya C++ API... and i'm using Visual Studio 2010.. and i like to know how to debug a C++ Plugin..

can any one help me out step by step..

thanks 

Rishis3D

sabareesh rg

unread,
May 5, 2014, 1:01:55 PM5/5/14
to python_in...@googlegroups.com


--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/aff7e73a-d81e-4f13-9004-5cf9fa1e50d5%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Nils Lerin

unread,
May 6, 2014, 10:03:56 AM5/6/14
to python_in...@googlegroups.com
For debugging in VS:
* Compile with debug options
* Launch maya
* Attach VS to Maya. CTRL+ALT+P or menu Debug->Attach to process.. . Select Maya in the list and click Attach
* Set your breakpoints
* Load the plugin in maya and start using it. As soon as a breakpoint is hit the program will pause and you can step trough the code in VS

To make changes you have to unload, change the code, re-compile, reload the plugin but you don't have to restart maya.


tushar sankhala

unread,
May 7, 2014, 7:18:56 AM5/7/14
to python_in...@googlegroups.com
Hi Nils,

I am posting my problem for the first time in the group. So please bear with me.

Does anyone have any idea how to debug the Maya QT plugin in c++.

I even tried to follow all those steps which they have mentioned in Maya SDK docs.

My "QApplication *app" returns "NULL" in debug mode and works only in release mode.

I truly need help in this one, Does any one know how to do this...

Thanks,
Tushar



On Tuesday, 6 May 2014 19:33:56 UTC+5:30, Nils wrote:
For debugging in VS:
* Compile with debug options
* Launch maya
* Attach VS to Maya. CTRL+ALT+P or menu Debug->Attach to process.. . Select Maya in the list and click Attach
* Set your breakpoints
* Load the plugin in maya and start using it. As soon as a breakpoint is hit the program will pause and you can step trough the code in VS

To make changes you have to unload, change the code, re-compile, reload the plugin but you don't have to restart maya.
On Mon, May 5, 2014 at 7:01 PM, sabareesh rg <sabar...@gmail.com> wrote:
On 13 October 2013 13:20, Rishis3D <rish...@gmail.com> wrote:
hi guys,

I learning Maya C++ API... and i'm using Visual Studio 2010.. and i like to know how to debug a C++ Plugin..

can any one help me out step by step..

thanks 

Rishis3D

--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages