To setup debugging, install https://github.com/stlink-org/stlink on your host machine
You can then use st-util.exe
from this package to be the gdb server, that you can then connect to from vscode.
- Start st-util:
./st-util.exe -p 1234
-
Press start debugging in vscode
-
debug fun