stm32g0xx/.vscode/launch.json
2022-12-15 10:18:35 +01:00

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": "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
}
]
}
]
}