我使用的是win10,我想使用PyCharm远程调试我的项目。我相信我已正确配置它,因为我的项目按预期启动而无需调试。但是,当我尝试调试它时,我收到了这些错误:
ssh://vagrant@127.0.0.1:2222/usr/bin/python -u /home/vagrant/.pycharm_helpers/pydev/pydevd.py --multiproc --qt-support --client '0.0.0.0' --port 36711 --file /vagrant/main.py start daemon
Traceback (most recent call last):
File "/home/vagrant/.pycharm_helpers/pydev/pydevd.py", line 26, in <module>
from _pydevd_bundle.pydevd_additional_thread_info import PyDBAdditionalThreadInfo
File "/home/vagrant/.pycharm_helpers/pydev/_pydevd_bundle/pydevd_additional_thread_info.py", line 19, in <module>
from _pydevd_bundle.pydevd_additional_thread_info_regular import PyDBAdditionalThreadInfo # @UnusedImport
File "/home/vagrant/.pycharm_helpers/pydev/_pydevd_bundle/pydevd_additional_thread_info_regular.py", line 5, in <module>
from _pydevd_bundle.pydevd_frame import PyDBFrame
File "/home/vagrant/.pycharm_helpers/pydev/_pydevd_bundle/pydevd_frame.py", line 16, in <module>
from _pydevd_bundle.pydevd_frame_utils import add_exception_to_frame, just_raised
ImportError: cannot import name add_exception_to_frame
答案 0 :(得分:0)
Pycharm:文件&gt;使缓存无效&gt;无效并重新启动 帮助过我。