Debugger broken after 2017.1
Answered
I just upgraded to 2017.1 and it has completely broken my debugger and apparently environment variables as well. I first noticed because running the code throws errors saying the environment variables are all empty.
I use the remote ssh feature to do my dev work and until the upgrade this has been working fine. Now whenever I try to put a debug point anywhere in my code I'm getting stuff like:
Traceback (most recent call last):
Traceback (most recent call last):
File "/root/.pycharm_helpers/pydev/_pydevd_bundle/pydevd_process_net_command.py", line 325, in process_net_command
File "/root/.pycharm_helpers/pydev/_pydevd_bundle/pydevd_process_net_command.py", line 325, in process_net_command
File "/root/.pycharm_helpers/pydev/pydevd.py", line 589, in consolidate_breakpoints
File "/root/.pycharm_helpers/pydev/pydevd.py", line 589, in consolidate_breakpoints
ImportError: No module named _pydevd_bundle.pydevd_trace_dispatch
ImportError: No module named _pydevd_bundle.pydevd_trace_dispatch
Traceback (most recent call last):
Traceback (most recent call last):
File "/root/.pycharm_helpers/pydev/_pydevd_bundle/pydevd_comm.py", line 381, in _on_run
File "/root/.pycharm_helpers/pydev/_pydevd_bundle/pydevd_comm.py", line 381, in _on_run
File "/root/.pycharm_helpers/pydev/_pydevd_bundle/pydevd_comm.py", line 396, in process_command
File "/root/.pycharm_helpers/pydev/_pydevd_bundle/pydevd_comm.py", line 396, in process_command
File "/root/.pycharm_helpers/pydev/_pydevd_bundle/pydevd_process_net_command.py", line 683, in process_net_command
File "/root/.pycharm_helpers/pydev/_pydevd_bundle/pydevd_process_net_command.py", line 683, in process_net_command
ImportError: No module named _pydev_bundle.pydev_imports
ImportError: No module named _pydev_bundle.pydev_imports
Can't process net command: 111 11 python-line /Projects/apps/main/tasks/wpt_status_check.py 31 queue_add THREAD None None
Can't process net command: 111 11 python-line /Projects/apps/main/tasks/wpt_status_check.py 31 queue_add THREAD None None
Please sign in to leave a comment.
Please, follow this issue in our issue tracker for further information: https://youtrack.jetbrains.com/issue/PY-23641
I tried deleting the .pycharm_helpers folder, and pycharm replaced it, same errors. The remote machine is a docker image so I blew it away completely to remove anything that might be hanging around - same error.
I've had the same problem with a Google App Engine app. Both 2017.1 and the 2017.1.1 EAP build show this behavior.
I tried to debug it for a while, I can manually run the imports if I put the pycharm-debug.egg in PYTHONPATH, but for whatever reason I cannot get the debugger to find it.
I created a simple python project, and that seems to work fine - I believe it has something to do with the subprocesses spawned by the app engine runner.
In any case, I've reverted to 2016.3 which works fine, for now.
Same problema here, I'm using the Google App Engine SDK (dev_appserver.py).