且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

pycharm调试器未连接:KeyboardInterrupt

更新时间:2022-06-22 01:05:31

我有类似的问题。我已经删除(删除,而不是禁用)所有现有断点(在由 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