pycharm调试器未连接:KeyboardInterrupt [英] pycharm debugger not connecting: KeyboardInterrupt

查看:484
本文介绍了pycharm调试器未连接:KeyboardInterrupt的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以某种方式,我的 pycharm 调试器不再连接

Somehow my pycharm debugger doesn't connect anymore.

我测试了所有ENV。另外,在stackoverflow上进行阅读:我删除了 .idea目录

I tested all ENV. Also, reading up on it on stackoverflow: I deleted the .idea directory.

但是,重新启动pycharm之后,总是会重新创建思想。(删除缓存,甚至再次删除和删除pycharm)

However, after restarting the pycharm .idea is always recreated (deleted caches and even deleted&downlaoded pycharm again)

**/Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6 "/Applications/PyCharm CE.app/Contents/helpers/pydev/pydevd.py" --multiproc --qt-support --client 127.0.0.1 --port 52281 --file /Users/franzi/Desktop/i18n/qordoba-cli/qordoba/cli.py i18n-find --traceback
warning: Debugger speedups using cython not found. Run '"/Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6" "/Applications/PyCharm CE.app/Contents/helpers/pydev/setup_cython.py" build_ext --inplace' to build.
pydev debugger: process 96448 is connecting

Connected to pydev debugger (build 171.4694.67)
Could not connect to 127.0.0.1: 52282
Traceback (most recent call last):
  File "/Applications/PyCharm CE.app/Contents/helpers/pydev/pydevd.py", line 1583, in <module>
    debugger.connect(host, port)
  File "/Applications/PyCharm CE.app/Contents/helpers/pydev/pydevd.py", line 324, in connect
    self.initialize_network(s)
  File "/Applications/PyCharm CE.app/Contents/helpers/pydev/pydevd.py", line 316, in initialize_network
    time.sleep(0.1)  # give threads time to start
KeyboardInterrupt

Process finished with exit code 1**


推荐答案

我有类似的问题。我已经删除(删除,而不是禁用)所有现有断点(在由 Ctrl + Shift + F8 调用的对话框中)。删除所有断点并修改运行配置(禁用添加内容根目录并将源根目录添加到PYTHONPATH)之后,调试开始起作用。使它们恢复正常工作-问题解决了。

I had similar problem. I have removed (remove, not disable) all existing breakpoints (in the dialog box invoked by Ctrl+Shift+F8). After removing all breakpoints and modifying run configuration (disable add content roots and add source roots to PYTHONPATH) debugging started to work. Enabling them back and still working fine - problem gone.

我认为删除断点就足以解决问题。请参阅来自JetBrains社区的提示:
https ://intellij-support.jetbrains.com/hc/en-us/community/posts/115000014004/comments/115000239630

I think that removing breakpoints will be sufficient to solve the issue. See hint from JetBrains community: https://intellij-support.jetbrains.com/hc/en-us/community/posts/115000014004/comments/115000239630

这篇关于pycharm调试器未连接:KeyboardInterrupt的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆