vscode调试python代码的json配置
{
"version": "0.2.0",
"configurations": [
{
"name": "Python: Debug train.py",
"type": "python",
"request": "launch",
"program": "./trainning/train.py",
"args": [
"--stage", "float",
"--config", "/home/configs/config.py"
],
"console": "integratedTerminal",
"pythonPath": "/home/you/my_env/bin/python3", // 修改为你的虚拟环境路径
"env": {
"DIR": "/mnt/xxx/xxx",
"CONFIGFILE": "/mnt/xxx/xxx",
"PYTHONPATH": "${DIR}:${env:PYTHONPATH}"
},
"preLaunchTask": "Set Environment Variables"
}
]
}
原文地址:https://blog.csdn.net/yumao1/article/details/140591477
免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!