Maya hung in eclipse pydev debug session

21 views
Skip to first unread message

Lidia Martinez

unread,
Sep 28, 2015, 7:25:33 PM9/28/15
to python_in...@googlegroups.com
Hi everybody!

I´m starting to use eclipse to debug code executed by Maya now. I use Linux and Eclipse version Kepler.
I start the server on pydevd, and then settrace on maya. Then click resume on eclipse to keep it working but connected. That way every breakpoint makes it stop there, as a regular debug session.

When the session ends, everything is ok, but sometimes when I execute code, it doesn´t stop anywhere and Maya hungs, I still don´t know the exact situation. The conection between them is not updated in the list, but Maya stays hung, not eclipse. 

If i try to finish it closing the session in eclipse, finishing the connection, Maya stays hung.

How could I see the active sessions or load any connection of Maya to finish that so I don´t have to kill Maya everytime something goes wrong?


If you work using this method, what´s the way you execute the lines of code?
What should I do? What shouldn´t I do?

--
Lidia

Justin Israel

unread,
Sep 28, 2015, 8:38:52 PM9/28/15
to python_in...@googlegroups.com
I've never used pydevd so I don't know how it is implemented, but maybe it is waiting for a response, or trying to send a response and the other side isn't receiving. It might be dodgy to try and look at open ports and try and close the right one. You can use gdb to debug the Maya process and see what it is hanging on.


--
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/CAAB1%3D8yMocyPVXB7cN3FGyXYYBbJpm3gYP5smdfvcLMAjWoxAw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages