{
"version": "0.2.0",
"configurations": [
{
"name": "gdb_access_manager", //调试配置的名字
"type": "cppdbg", //调试器的类型
"request": "launch", //调试的模式 launch:启动程序并调试, attach:将程序附加到一个正在运行的进程中进行调试
//"preLunchTask" :"", //定义在调试之前要运行的任务
//"postDebugTask": "", //定义在调试结束时要运行的任务
//"command": "make",
"program": "${workspaceFolder}/exec", //要运行的可执行文件或源代码的路径
"args": ["subscriber"], //要传递给program的参数
"stopAtEntry": false, //是否在程序入口处停止
"cwd": "${fileDirname}", //调试器的工作目录
"environment": [], //环境变量
"externalConsole": false,
"MIMode": "gdb",
"console": "internalConsole",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
],
// "miDebuggerPath": "/usr/bin/gdb",
"miDebuggerPath": "/home/linearx/envYang/gdb"
}
]
}
网友评论