测试人社区

使用pycharm进行本地调试的时候报错提示Connection to Python debugger failed Socket closed

在Ubuntu18.04系统中使用pycharm进行本地调试的时候报错:Connection to Python debugger failed Socket closed

请问哪位大佬或者老师知道是怎么回事吗,这个问题怎么解决啊,下午还好好的可以进行调试,晚上直播课就不行了

下面是图片中显示的具体的报错信息:
Traceback (most recent call last):
File “/opt/pycharm-community-2020.3/plugins/python-ce/helpers/pydev/pydevd.py”, line 51, in
from _pydevd_frame_eval.pydevd_frame_eval_main import (
File “/opt/pycharm-community-2020.3/plugins/python-ce/helpers/pydev/_pydevd_frame_eval/pydevd_frame_eval_main.py”, line 50, in
from _pydevd_frame_eval.pydevd_frame_eval_cython_wrapper import frame_eval_func, stop_frame_eval, dummy_trace_dispatch, clear_thread_local_info
File “/opt/pycharm-community-2020.3/plugins/python-ce/helpers/pydev/_pydevd_frame_eval/pydevd_frame_eval_cython_wrapper.py”, line 56, in
clear_thread_local_info = mod.clear_thread_local_info_py
AttributeError: module ‘_pydevd_frame_eval_ext.pydevd_frame_evaluator_py39’ has no attribute ‘clear_thread_local_info_py’

试下不用 pytest debug会不会有问题。之前碰到了和你一样的错误。我的方法是重装pytest后就OK了

看起来是一个插件报错了,3.9.1也挺新。我明天用3.9.1试试。另外你是不是安装过什么调试插件。

官网说是cpython问题 删除下他说的目录试试

好的,谢谢老师,我今天下班之后看一下是不是误触下载了插件

好的,感谢,我今天试一下

老师,我看了一下,没有装什么插件

重装还是不行,今天再试试,不行的话我重装pycharm试一下