vscode调试时如何在launch.json中添加环境变量
json
适用于现代 C++ 的 JSON。
项目地址:https://gitcode.com/gh_mirrors/js/json
免费下载资源
·
"configurations": [
{
"name": "g++ - 生成和调试活动文件",
"type": "cppdbg",
"request": "launch",
"program": "************************",
"args": ["**************************"],
"stopAtEntry": false,
"cwd": "*****************************",
"environment": [{"name": "PYTHONPATH", "value": "/home/hl/code/DeConvV2/"}],
"externalConsole": false,
"MIMode": "gdb",
"setupCommands": [
{
"description": "为 gdb 启用整齐打印",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
],
"preLaunchTask": "C/C++: g++ build active file",
"miDebuggerPath": "/usr/bin/gdb"
}
]
更多常用参数的解释和示例,参考
GitHub 加速计划 / js / json
41.72 K
6.61 K
下载
适用于现代 C++ 的 JSON。
最近提交(Master分支:1 天前 )
960b763e
2 个月前
8c391e04
5 个月前
更多推荐
已为社区贡献12条内容
所有评论(0)