{
"version": "0.2.0",
"configurations": [
{
"name": "JLink (launch)",
"type": "gdbtarget",
"request": "launch",
"cwd": "${workspaceFolder}/",
"program": "${workspaceFolder}/build/Debug/xxx.elf",
"definitionPath": "${workspaceFolder}/GD32H7/SVD/GD32H7xx.svd",
"gdb": "arm-none-eabi-gdb",
"auxiliaryGdb": true,
// "initCommands": [
// "monitor reset 0",
// "tbreak main",
// ""
// ],
"customResetCommands": [
"monitor reset 0",
"maintenance flush register-cache",
"maintenance flush dcache",
"tbreak main",
"continue"
],
"target": {
"server": "JLinkGDBServerCL.exe",
"serverParameters": [
"-singlerun",
"-nohui",
"-if", "SWD",
"-device", "GD32F470VG",
],
"port": "2231"
}
}
]
}
插件:Arm CMSIS Debugger+Arm Assembly+CDT GDB Debug Adapter Extension+debug-tracker-vscode+Memory Inspector+Peripheral Inspector+RTOS Views。
能够做到和keil一样的调试体验,可以在线查看内存、变量、外设。