Debugging always starts at register function in maya
Answered
This seems to be something that started fairly recently. When starting the debugger running in maya 2018, it immediately breaks at the function "register" in the file C:\Program Files\Autodesk\Maya2018\bin\python27.zip!\atexit.py. It's not the end of the world, but it's very annoying to have to hit continue and close the file every time I want to debug. There does not appear to be a breakpoint there.
Why is this happening, and how can I make it stop?
Thanks!
Please sign in to leave a comment.
Hi Sdas,
Thank you for contacting PyCharm support.
Could you please provide a code sample, if possible, and a screenshot demonstrating the problem?
Looking forward to your reply.
Kind regards,
Sergey
https://www.jetbrains.com
The Drive to Develop
Logged in just to reply to this one:
_Sometimes_ when you start the remote debugging session in Maya, PyCharm freezing Maya and pops up atexit.py (I'd say 80% of cases)
###
sys.path.append(r'C:\Program Files\JetBrains\PyCharm_2018\debug-eggs\pycharm-debug.egg')
import pydevd
pydevd.settrace('localhost', port=7720, suspend=False)
###
Taking into account debugging sessions are being created in bulk over the day, like 30-40 times, it's very annoying when it's getting stuck in atexit.register() at the very beginning, I have to switch to charm and F9 again, then switch back. Every time. Would really appreciate if you guys could take a look into this.
Hi Joss13,
The problem seems to be related to https://youtrack.jetbrains.com/issue/PY-14850, please vote for it and follow for updates.