Python升级后,Pydev调试器在PyCharm中停止工作

时间:2016-12-13 15:37:04

标签: pycharm pydev

我使用PyCharm。我之前使用Python 3.3构建了pydev调试器 python /Applications/PyCharm.app/Contents/helpers/pydev/setup_cython.py build_ext --inplace。 然后,我必须更新我的项目以在Python 3.5下使用新的虚拟环境,现在调试器不会运行,并显示以下消息:

/<venv_path>/bin/python3.5 /Applications/PyCharm.app/Contents/helpers/pydev/pydevd.py --multiproc --save-signatures --qt-support --client 127.0.0.1 --port 58286 --file /Applications/PyCharm.app/Contents/helpers/pycharm/pytestrunner.py -p pytest_teamcity <pytest_root> <options>
Testing started at 10:25 AM ...
pydev debugger: process 94521 is connecting

Connected to pydev debugger (build 163.8233.8)
Traceback (most recent call last):
  File "/Applications/PyCharm.app/Contents/helpers/pydev/pydevd.py", line 1596, in <module>
    globals = debugger.run(setup['file'], None, None, is_module)
  File "/Applications/PyCharm.app/Contents/helpers/pydev/pydevd.py", line 956, in run
    time.sleep(0.1)  # busy wait until we receive run command
KeyboardInterrupt

我尝试在更新的Python版本下重新运行setup_cython.py build_ext --inplace,使我的缓存无效,重新启动,删除我的.idea文件夹,但没有任何设法解决上述信息。

1 个答案:

答案 0 :(得分:8)

我通过清除所有已保存的断点来解决此问题。

在启动时设置环境变量PYCHARM_DEBUG = True会引导我达到此分辨率。