pydev remote debugging in Maya?

Hi all,

I'm just trying out the remote debugging and all is ok the first time running my script internally in maya 2011, but once I try and rerun the script the debugger no longer connects up. I guess there is some cleanup that I need to do somewhere? Can anyone point me in the right direction?

cheers

-Si

5 comments

Hi, Simon!

What version of PyCharm are you using? Prior to version 2.0 remote debug server should be restarted manualy every time your script disconnects. In PyCharm 2.0 EAP this behaviour was changed and the server always waits for next connection after disconnect.

0

HI,

I'm using 2.0 EAP V 110.37.

If I disconnect in Pycharm and rerun the debug, Pycharm will just wait for a connection. The first time the script is run in maya, it all works ok, but then subsequent runs it fails to connect up (I'm importing and setTrace in the script itself), so I'm guess that the thread must still be active in maya or something as a restart of maya sorts it all out.

I assume that I need a way of reestablishing the connection from maya  once the pycharm side has been disconnected and debug re-run?

Hope that makes sense.

:-)

-Si

0

I think the problem is that your script is trying to connect to PyCharm before previous run has disconnected. And that prevents it to connect again. If it is so, the only workaround available now is to restart remote debug and then run your script again.

Please submit issue to our issue tracker http://youtrack.jetbrains.net/dashboard and we will think how to fix that.

0

I think, disconnecting from debugger at the end of your script should help.

I've created an issue about that function in debugger api: http://youtrack.jetbrains.net/issue/PY-4714

0

Great.

I'll try it out when that build comes through.

:-)

0

Please sign in to leave a comment.