{
"version": "0.2.0",
"configurations": [
"name": "gdb",
"type": "cppdbg",
"request": "launch",
"program": "${fileDirname}\\${fileBasenameNoExtension}.exe",
"args": [],
"stopAtEntry": true, // 设为true时程序将暂停在程序入口处,我一般设置为true
"cwd": "C:/Project/LLVM/bin",//自己的编译器路径,自行修改
"environment": [],
"externalConsole": true, // 调试时是否显示控制台窗口,一般设置为true显示控制台
"MIMode": "gdb",
"miDebuggerPath": "C:\\Project\\LLVM\\bin\\gdb.exe",//自己的gdb路径,自行修改
"setupCommands": [
"description": "gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
],
"preLaunchTask": "Compile"//可以随意更改,保证与tasks.json的label相同
]