{
"version": "0.2.0",
"configurations": [
{
"name": "Debug",
"type": "cppdbg",
"request": "launch",
"miDebuggerPath": "/usr/local/bin/arm-none-eabi-gdb",
"targetArchitecture": "arm",
"program": "${workspaceRoot}/output.elf",
"setupCommands": [
{
"text": "file'${workspaceRoot}/output.elf'"
},
{
"text": "target extended-remote /dev/cu.usbmodemXXXXXXXX"
},
{
"text": "monitor tpwr enable"
},
{
"text": "monitor swdp_scan"
},
{
"text": "attach 1"
},
{
"text": "load ${workspaceRoot}/output.elf"
}
],
"preLaunchTask": "make",
"launchCompleteCommand": "None",
"externalConsole": false,
"cwd": "${workspaceRoot}"
}
]
}
来源: http://www.jianshu.com/p/38d51809e88e