This project has moved and is read-only. For the latest updates, please go here.

Maya 2013 Debugging

Feb 5, 2013 at 1:51 AM
Hey guys,

I have been using Eclipse for live debugging of Python running inside of Maya for some time. I would much prefer to do this with Visual Studio but am not sure how to set it up! In Eclipse I import a pydev module and run the Eclipse debug server which triggers breakpoints in my code. However, in Visual Studio, when I attach to the Maya process using Python Debugging the breakpoints are never triggered.

Any ideas what I am doing wrong?
Feb 7, 2013 at 4:51 PM
The current Attach to Process feature works well with plain python.exe processes, but can be less reliable with programs that embed Python. Chances are you aren't doing anything wrong and we simply don't support Maya (we certainly haven't tested with it).

We are currently working on a similar feature to what Eclipse has, where you will be able to add 2 lines of code at the top of your script which will enable us to attach more safely. There's more info in this post on what we've got planned.