python - pycharm 调试器未连接 : KeyboardInterrupt

标签 python debugging connection pycharm

不知何故,我的 pycharm 调试器不再连接

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

然而,在重新启动pycharm .idea 后总是重新创建(删除缓存甚至再次删除和下载pycharm)

**/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)后,调试开始工作。重新启用它们并且仍然可以正常工作 - 问题消失了。

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

关于python - pycharm 调试器未连接 : KeyboardInterrupt,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45109515/

相关文章:

python - Boost Python用默认参数包装静态成员函数重载

debugging - gdbserver:目标描述指定的未知体系结构 "aarch64"

linux - Bash linux 强制多个实例等待运行 sqlplus 命令完成

python - 在keras中使用conv2D层时,在tf.random.set_seed中设置种子是否还会设置glorot_uniform kernel_initializer使用的种子吗?

python - 类型错误 : create_superuser() missing 1 required positional argument: 'profile_picture'

python - Pycharm 解析 Django 模板中的引用

grails - 与Grails连接到DB2数据库

c - 在c中调试?

ruby - Eclipse DLTK 和 Ruby 快速调试器

sockets - 如何通过端口关闭 TCP 连接?