vs代码版本:1.29.1(1.29.1)蟒蛇版本:3.6.5启动.json: { "name": "Python", "type": "python", "pythonPath":"${config.python.pythonPath}", "request": "launch", "stopOnEntry": true, "console": "none", "program": "${file}", "cwd": "${workspaceRoot}", "debugOptions": [ "WaitOnAbnormalExit", "WaitOnNormalExit", "RedirectOutput" ], "env": {"name":"value"} }工作区设置: {"python.pythonPath": "/usr/local/opt/python/libexec/bin/python","python.linting.pylintEnabled": true }我下载的扩展。当我测试调试时,我失败了。结果据说“在开始调试之前,您需要选择一个 Python 解释器”。但我实际上选择了左下角显示的一个版本。任何部分不正确?
2 回答
沧海一幻觉
TA贡献1824条经验 获得超5个赞
我编辑为下面的代码,它的工作原理!
{
"name": "Python: Current File (Integrated Terminal)",
"type": "python",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal",
"stopOnEntry": true
}
添加回答
举报
0/150
提交
取消