python - VS Code 上的调试器无法在输出为 : DAP Server launched with command: conda run -n MyEnvironment --no-capture-output 的 Python 上运行

标签 python visual-studio-code vscode-debugger

一段时间以来,我一直在 VS Code 上使用 Debugger 来调试 Python 脚本,它始终运行良好。

昨天我尝试处理一些用 C 语言编写的脚本并调试它们。现在 VS Code 上的调试器无法处理 Python 脚本。

查看 Python 部分的输出窗口,我可以看到以下错误(也如下图所示):

DAP Server launched with command: conda run -n testenv --no-capture-output --live-stream python c:\Users\user.name\.vscode\extensions\ms-python.python-2022.4.0\pythonFiles\lib\python\debugpy\adapter

我尝试在 VS Code 上卸载 Python 扩展并重新安装,但并没有解决问题。有什么建议吗?

enter image description here

最佳答案

关于python - VS Code 上的调试器无法在输出为 : DAP Server launched with command: conda run -n MyEnvironment --no-capture-output 的 Python 上运行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/71726755/

相关文章:

python - 将条件应用于 python 列表

python - SciPy 阶跃响应图似乎因某些值而中断

python - 将 Python 对象序列化为 XML (Apple .plist)

visual-studio-code - 如何让 vscode 不等待完成 preLaunchTask?

ubuntu - VSCode 在调试器中可视化动态数组

javascript - 将 Python/Boo/Ruby 类语法编译为 C/C++/LLVM/Javascript 的工具(使用 JS ArrayBuffer 提高速度)

visual-studio-code - Visual Studio Code 无法通过 VNC 在 Ubuntu 16.04 上打开

go - vscode 不检测错误 golang

visual-studio-code - ESLint 没有运行,因为不推荐使用的设置 'eslint.enable' 设置为 false。删除设置并使用扩展禁用功能

typescript - 如何在调试器中查看 Locator 对象的内容?