58 lines
2.0 KiB
JSON
58 lines
2.0 KiB
JSON
{
|
|
"version": "0.2.0",
|
|
"configurations": [
|
|
{
|
|
"name": "gdb Launch Debug",
|
|
"type": "cppdbg",
|
|
"request": "launch",
|
|
"args": [],
|
|
"program": "${workspaceFolder}/_build/firmware.elf",
|
|
"stopAtEntry": true,
|
|
"cwd": "${workspaceRoot}",
|
|
"environment": [],
|
|
"externalConsole": false,
|
|
"MIMode": "gdb",
|
|
"miDebuggerPath": "/usr/local/bin/arm-none-eabi-gdb",
|
|
"debugServerPath": "openocd",
|
|
"debugServerArgs": "-f ${workspaceRoot}/openocd.cfg",
|
|
"serverLaunchTimeout": 20000,
|
|
"filterStderr": true,
|
|
"filterStdout": false,
|
|
"serverStarted": "Info : Listening on port 3333 for gdb connections",
|
|
"sourceFileMap": {
|
|
"${workspaceRoot}":"${workspaceFolder}"
|
|
},
|
|
"logging": {
|
|
"engineLogging": true,
|
|
"exceptions": true,
|
|
"moduleLoad": true,
|
|
"programOutput": true,
|
|
"trace": true,
|
|
"traceResponse": true
|
|
},
|
|
"setupCommands": [
|
|
{
|
|
"description": "Enable pretty-printing for gdb.",
|
|
"text": "-enable-pretty-printing",
|
|
"ignoreFailures": false
|
|
},
|
|
{
|
|
"description": "Connect to gdb server.",
|
|
"text": "target remote localhost:3333",
|
|
"ignoreFailures": false
|
|
},
|
|
{
|
|
"description": "Load executable into debugger.",
|
|
"text": "file ${workspaceFolder}/_build/firmware.elf",
|
|
"ignoreFailures": false
|
|
},
|
|
{
|
|
"description": "Load executable to target",
|
|
"text": "load",
|
|
"ignoreFailures": false
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|