Debug Project
Debug your Cortex-M, STM8 project.
Prepare
For Cortex-M Project
You need to install cortex-debug
For STM8 Project
You need to install stm8-debugger
Launch Debugger
For Cortex-M Project
Open the flasher configuration and set the relevant options (eide will automatically generate the corresponding debugging configuration according to the different flasher config)
Open
launch.json
, check cortex-debug debug configurations.Connect your board with debug probe.
Select debug config name in VSCode Debug View.
Press
F5
launch debugger.
More Usage
Please reference: https://github.com/Marus/cortex-debug/wiki