pycharm 无法使用degug

昨天刚安装完pycharm debug还可以使用,今天就出现了以下报错
C:\Users\admin\AppData\Local\Programs\Python\Python39\python.exe "F:\pycharm\PyCharm Community Edition 2021.1.3\plugins\python-ce\helpers\pydev\pydevd.py" --multiproc --qt-support=auto --client 127.0.0.1 --port 60844 --file F:/python-project/casher.py
Traceback (most recent call last):
File "F:\pycharm\PyCharm Community Edition 2021.1.3\plugins\python-ce\helpers\pydev_pydev_bundle\pydev_imports.py", line 37, in
execfile= execfile #Not in Py3k
NameError: name 'execfile' is not defined

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "F:\pycharm\PyCharm Community Edition 2021.1.3\plugins\python-ce\helpers\pydev\pydevd.py", line 33, in
from _pydev_bundle import pydev_imports, pydev_log
File "F:\pycharm\PyCharm Community Edition 2021.1.3\plugins\python-ce\helpers\pydev_pydev_bundle\pydev_imports.py", line 39, in
from _pydev_imps._pydev_execfile import execfile
File "F:\pycharm\PyCharm Community Edition 2021.1.3\plugins\python-ce\helpers\pydev_pydev_imps_pydev_execfile.py", line 18, in
ec(compile(contents+"\n", file, 'exec'), glob, loc)
NameError: name 'ec' is not defined

Process finished with exit code 1
求助如何解决

name 'ec' is not defined是你代码的还没定义ec,,程序识别不到ec是什么,检查一下代码