Python 升级后 Pydev 调试器在 PyCharm 中停止工作 [英] Pydev debugger stopped working in PyCharm after Python upgrade
问题描述
我使用 PyCharm.我之前使用过在 Python 3.3 下构建了 pydev 调试器python/Applications/PyCharm.app/Contents/helpers/pydev/setup_cython.py build_ext --inplace
.然后我不得不更新我的项目以使用 Python 3.5 下的新虚拟环境,现在调试器无法运行,并显示以下消息:
I use PyCharm. I had previously built the pydev debugger under Python 3.3 using
python /Applications/PyCharm.app/Contents/helpers/pydev/setup_cython.py build_ext --inplace
.
I then had to update my project to use a new virtual environment under Python 3.5, and now the debugger won't run, with the following message:
/<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
文件夹,但没有任何解决办法上面的消息.
I tried rerunning setup_cython.py build_ext --inplace
under the updated Python version, invalidating my caches, restarting, deleting my .idea
folder, but nothing manages to resolve the message above.
推荐答案
我通过清除所有保存的断点解决了这个问题.
I resolved this issue by clearing all saved breakpoints.
在启动时设置环境变量 PYCHARM_DEBUG=True 导致我解决了这个问题.
Setting the environment variable PYCHARM_DEBUG=True in the launch lead me to this resolution.
这篇关于Python 升级后 Pydev 调试器在 PyCharm 中停止工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!