【python】pycharm调试问题:Connection to Python debugger failed soket closed

使用pycharm调试时出现的问题

点击图示按钮在pycharm中的debug按钮
【python】pycharm调试问题:Connection to Python debugger failed soket closed
调试失败,在界面左下方出现:“Connection to Python debugger failed soket closed”,如下图所示。
【python】pycharm调试问题:Connection to Python debugger failed soket closed

解决方案

选择左上角工具栏“file”→“setting”
【python】pycharm调试问题:Connection to Python debugger failed soket closed
打开setting界面后,在左侧“Build,Execution,Deployment”里选择“Python Debugger”;然后在右侧的“PyQt compatible”前面的对号取消掉。点击右下方,OK即可。
【python】pycharm调试问题:Connection to Python debugger failed soket closed