2016-12-28 14 views
0

我使用win10,我想用PyCharm远程调试我的项目。我相信我已经正确配置它,因为我的项目没有调试就按预期启动。然而,当我尝试调试它,我得到这些错误:python龙卷风远程调试通过vagrant错误

ssh://[email protected]: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

从第一眼看来,您的远程[项目映射](https://www.jetbrains.com/help/pycharm/2016.1/edit-project-path-mappings-dialog.html)并不完全正确。如果这没有解决你的问题,你可能会发现[这个彻底的答案](http://stackoverflow.com/questions/6989965/how-do-i-start-up-remote-debugging-with-pycharm)有帮助。 – afxentios

回答

0

Pycharm:文件>无效缓存>废止和重新启动 帮助了我。