{
"version": "0.2.0",
"configurations": [
{
"name": "(gdb) Launch",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/testgdb/maze", //可执行文件的完整路径,文件名与 build.json 中生成的可执行文件名保持一致
"args": [
// "--lcores",
// "0@3,(1-2)@(28-29)",
// "-n",
// "4",
// "--",
// "-p",
// "0x30",
// "-r",
// "4",
// "--enable-jumbo",
// "--max-pkt-len",
// "9706",
// "--config='(4,0,0,1),(5,0,1,2),(5,0,2,3)'", // (port, queue, lcore, 1:command thread 2:send thread 3:recv thread)
// "--logLevel",
// "4",
// "-d",
// "15",
// "-t",
// "30"
],
"stopAtEntry": false, //是否在 main 函数处暂定执行
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false, //在打开外部终端执行程序,而不是在 VSCode 的控制台中运行
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
}
]
}