【发布时间】:2018-06-09 03:28:18
【问题描述】:
我已经使用 Visual Studio Code 几年了,我发现它是一个非常好的 IDE。我用 Python 编程比任何其他语言都多。
我没有使用 IDE 的调试器(尽管它是一项功能),这让我很困扰。
按下调试播放按钮时出错:
Failed to launch the Python Process, please validate the path 'export PATH=$PATH:/Library/Frameworks/Python.framework/Versions/2.7/bin/python'
检查我的 PYTHONPATH:
我的 launch.json 文件:
"configurations": [
{
"name": "Python",
"type": "python",
"request": "launch",
"stopOnEntry": true,
"pythonPath": "${config:python.pythonPath}",
"program": "${file}",
"cwd": "/workspace/h5-automation/",
"env": {},
"envFile": "${workspaceRoot}/.env",
"debugOptions": [
"WaitOnAbnormalExit",
"WaitOnNormalExit",
"RedirectOutput"
]
}
有什么想法/建议吗?
【问题讨论】:
标签: python configuration visual-studio-code vscode-settings pythonpath