简体   繁体   English

在 vscode 中调试 python 失败

[英]debug python in vscode failed

I'm unable to debug my python code in vscode.我无法在 vscode 中调试我的 python 代码。 I've attempted to redownload python and add it to PATH, but I'm still getting the same errors as before.我尝试重新下载 python 并将其添加到 PATH,但我仍然遇到与以前相同的错误。

When I press F5, the terminal shows the image 1, and later, image 2 shows automatically.当我按 F5 时,终端显示图像 1,稍后,图像 2 自动显示。

Any ideas?有任何想法吗?

在此处输入图像描述

在此处输入图像描述

It's not the problem of python but the 'Python' extension.这不是 python 的问题,而是“Python”扩展的问题。 You can try to reinstall it.您可以尝试重新安装它。 If it does not work, you can try to install other versions of 'Python' extension(Hit the "manage" button on the extension -> Install Another Version).如果它不起作用,您可以尝试安装其他版本的“Python”扩展(点击扩展上的“管理”按钮 -> 安装另一个版本)。

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

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