https://blog.csdn.net/jiladahe1997/article/details/122046665
https://discuss.em-ide.com/blog/67-cortex-debug
第一版
{// 使用 IntelliSense 了解相关属性。 // 悬停以查看现有属性的描述。// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387"version": "0.2.0","configurations": [{"name": "Cortex Debug (OpenOCD)","type": "cortex-debug","request": "launch","servertype": "openocd","cwd": "${workspaceFolder}","executable": "./build/UARTRxInterrupt.elf","device": "STM32H743VI","configFiles": ["interface/stlink.cfg","target/stm32h7x.cfg" ],"gdbPath": "/Users/zhy/Tools/xpack-arm-none-eabi-gcc-14.2.1-1.1/bin/arm-none-eabi-gdb"
}]
}
第二版代码
{// 使用 IntelliSense 了解相关属性。 // 悬停以查看现有属性的描述。// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387"version": "0.2.0","configurations": [{"name": "Cortex Debug (OpenOCD)","type": "cortex-debug","request": "launch","servertype": "openocd","cwd": "${workspaceFolder}","executable": "./build/UARTRxInterrupt.elf","device": "STM32H743VI","configFiles": ["interface/stlink.cfg","target/stm32h7x.cfg" ],"svdFile": "/Users/zhy/Tools/STM32H743.svd","gdbPath": "/Users/zhy/Tools/xpack-arm-none-eabi-gcc-14.2.1-1.1/bin/arm-none-eabi-gdb","liveWatch": {"enabled": true,"samplesPerSecond": 4
}
}]
}