[英]vscode launch.json configuration
I have an issue with launch a cpp project file with vscode, here is my error launch program {workspace domain}\\build\\Debug\\outDebug
does not exist.我在使用 vscode 启动 cpp 项目文件时遇到问题,这是我的错误launch program {workspace domain}\\build\\Debug\\outDebug
不存在。 and that's true, but i want to know can I add a parameter to my launch.json
file or edit it, to work like : if a there is no directory to put the build file into it, so make it!这是真的,但我想知道我可以向我的launch.json
文件添加一个参数或编辑它,像这样工作:如果没有目录可以将构建文件放入其中,那么制作它! is it possible to do that ?有可能这样做吗?
here is my launch.json file source这是我的 launch.json 文件源
{
"version": "0.2.0",
"configurations": [
{
"name": "C/C++ Runner: Debug Session",
"type": "cppdbg",
"request": "launch",
"args": [],
"stopAtEntry": false,
"cwd": "o:\\Developing\\Projects\\Training\\c++\\School",
"environment": [],
"program": "o:\\Developing\\Projects\\Training\\c++\\School\\build\\Debug\\outDebug",
"internalConsoleOptions": "openOnSessionStart",
"MIMode": "gdb",
"miDebuggerPath": "gdb",
"externalConsole": false,
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
}
]
}
See docs:查看文档:
https://code.visualstudio.com/docs/cpp/launch-json-referencehttps://code.visualstudio.com/docs/cpp/launch-json-reference
May be there is solve.可能有解决办法。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.