pycharm不能debug
pycharm中在使用debug调试代码时运行其它的代码,并且报错误:```pythonTraceback (most recent call last):File "E:\Program Files\JetBrains\PyCharm Community Edition 2020.3.5\plugins\python-ce\helpers\pydev\pydevd.py", line 39, i
·
pycharm中在使用debug调试代码时运行其它的代码,并且报错误:
```python
Traceback (most recent call last):
File "E:\Program Files\JetBrains\PyCharm Community Edition 2020.3.5\plugins\python-ce\helpers\pydev\pydevd.py", line 39, in <module>
from _pydevd_bundle.pydevd_comm import CMD_SET_BREAK, CMD_SET_NEXT_STATEMENT, CMD_STEP_INTO, CMD_STEP_OVER, \
File "E:\Program Files\JetBrains\PyCharm Community Edition 2020.3.5\plugins\python-ce\helpers\pydev\_pydevd_bundle\pydevd_comm.py", line 91, in <module>
from _pydevd_bundle import pydevd_console_integration
File "E:\Program Files\JetBrains\PyCharm Community Edition 2020.3.5\plugins\python-ce\helpers\pydev\_pydevd_bundle\pydevd_console_integration.py", line 6, in <module>
from _pydevd_bundle.pydevconsole_code_for_ironpython import InteractiveConsole
File "E:\Program Files\JetBrains\PyCharm Community Edition 2020.3.5\plugins\python-ce\helpers\pydev\_pydevd_bundle\pydevconsole_code_for_ironpython.py", line 305
exec code in self.locals
^
SyntaxError: Missing parentheses in call to 'exec'
- 解决方法:
代码中有代码名为:code.py,将其改为其它的名字即可。
更多推荐
所有评论(0)