先安装Python3。
然后在launch.json文件中加入以下
{
"name": "Python",
"type": "python",
"request": "launch",
"pythonPath": "D:/Program Files/Python37/python.exe",
"program": "${file}",
"console": "externalTerminal" //调试时是否显示控制台窗口
},
本文介绍如何在VSCode中配置Python调试环境,包括Python3的安装步骤及launch.json文件的具体设置,确保Python程序能在外部终端中顺利调试。
先安装Python3。
然后在launch.json文件中加入以下
{
"name": "Python",
"type": "python",
"request": "launch",
"pythonPath": "D:/Program Files/Python37/python.exe",
"program": "${file}",
"console": "externalTerminal" //调试时是否显示控制台窗口
},
3344
2116

被折叠的 条评论
为什么被折叠?