stm32g0xx/.vscode/launch.json

67 lines
2.5 KiB
JSON
Raw Normal View History

{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "gdb Launch Debug",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/build/firmware.elf",
"args": [
"-d","${workspaceFolder}/Core/Src",
"-d","${workspaceFolder}/Core/Startup",
"-d","${workspaceFolder}/Core/Drivers",
],
"stopAtEntry": true,
"cwd": "${workspaceRoot}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"miDebuggerPath": "/usr/bin/arm-none-eabi-gdb",
"debugServerPath": "openocd",
"debugServerArgs": "-f /usr/local/share/openocd/scripts/interface/stlink.cfg -f /usr/local/share/openocd/scripts/target/stm32g0x.cfg",
"serverLaunchTimeout": 20000,
"filterStderr": true,
"filterStdout": false,
"serverStarted": "Info : Listening on port 3333 for gdb connections",
// "sourceFileMap": {
// "/work/":"${workspaceFolder}"
// },
"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
}
]
},
]
}