【发布时间】:2021-11-05 21:25:27
【问题描述】:
在 VSCode cppdbg debug launch.json 中,我在“args”中设置了 a/b/c,但在使用“customLaunchSetupCommands”后它丢失了它们。
{ “名称”:“ccc”, “类型”:“cppdbg”, “请求”:“启动”, “程序”:“dddd”, "cwd": "${workspaceFolder}", “stopAtEntry”:假, “外部控制台”:假, “参数”:[ “一=主要”, "b=100", “c=222” ],
"MIMode": "gdb",
"miDebuggerPath": "xxx",
"targetArchitecture": "x86_64",
"miDebuggerServerAddress": "",
"setupCommands": [
{
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
],
"customLaunchSetupCommands": [
{
"text": "file xxx"
},
],
"launchCompleteCommand": "exec-run",
"logging": {
"trace": true,
"engineLogging": true
},
},
【问题讨论】: