我在使用Python与Visual Studio代码时收到以下错误消息:
R:\ python> cd r:\ python && cmd / C“set”PYTHONIOENCODING = UTF-8“&& set”PYTHONUNBUFFERED = 1“&&”C:/ Program Files(x86)/Python36-32/python.exe“ C:\ Users \ smit097.vscode \ extensions \ ms-python.python-2018.7.1 \ pythonFiles \ PythonTools \ visualstudio_py_launcher.py r:\ python 50144 34806ad9-833a-4524-8cd6-18ca4aa74f14 RedirectOutput,RedirectOutput r:\ python \ testhelloworld.py“'cmd'未被识别为内部或外部命令,可运行程序或批处理文件 .
过了一段时间,有一个弹出窗口要求我打开launch.json .
只有在我调试并运行新代码时才会弹出此消息 . 旧代码运行正常,没有错误 .
我尝试卸载并重新安装VSC,但没有运气 .
1 回答
转到,打开调试配置
launch.json
Debug -> Open Configurations
在
launch.json
中,更改"console": "IntegratedTerminal"
至"console": "none"
我有同样的问题,上面的修复对我有用 . 你也可以尝试添加
看看它是否适合你 .
资源:
Having problems with debugging in .vscode
VScode starts debugging in integrated terminal instead of debug console