简体   繁体   English

无法在vscode中调试python helloworld

[英]Unable debug python helloworld in vscode

I am trying python first time in VSCode. 我第一次在VSCode中尝试python。 I am successfully able to run python file, but not able debug it. 我能够成功运行python文件,但无法调试它。 I am following steps given in this tutorial . 我正在按照本教程中给出的步骤进行操作。 When I debug, I am getting following error in Debug console: 调试时,在调试控制台中出现以下错误:

Traceback (most recent call last):
  File "/home/digitate/.vscode/extensions/ms-python.python-2018.1.0/pythonFiles/PythonTools/visualstudio_py_launcher.py", line 91, in <module>
    vspd.debug(filename, port_num, debug_id, debug_options, currentPid, run_as)

I had the same problem when using a vpn from a client. 从客户端使用VPN时遇到相同的问题。 After closing the software the debug starts working again. 关闭软件后,调试将再次开始工作。 Probably some a problem with the port used by the debugger 调试器使用的端口可能存在一些问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM