Skip to content

Instantly share code, notes, and snippets.

@robotdad
Created April 22, 2017 00:29
Show Gist options
  • Save robotdad/28c60c77e8b39eeee73c65dc8234df69 to your computer and use it in GitHub Desktop.
Save robotdad/28c60c77e8b39eeee73c65dc8234df69 to your computer and use it in GitHub Desktop.
launch.json for debugging an ARM board
{
"version": "0.2.0",
"configurations": [
{
"name": "C++ Launch",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceRoot}/BUILD/mbed_blinky.elf",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceRoot}",
"environment": [],
"externalConsole": true,
"windows": {
"MIMode": "gdb",
"miDebuggerPath": "c:\\tools\\armgcc\\6-2017-q1-update\\bin\\arm-none-eabi-gdb.exe",
"setupCommands": [
{
"description": "Connect to remote",
"text": "target remote localhost:3333",
"ignoreFailures": true
},
{
"text": "file D:/Source/armtests/mbed_blinky/BUILD/mbed_blinky.elf"
},
{
"text": "monitor reset halt"
},
{
"text": "monitor reset init"
}
]
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment