Debugging in Visual Studio Code w/ GDB + Cortex-Debug Extension

That’s a good guide to debugging with VS Code, GDB, and JLink. I’ve been using this method for a while. I think VS Code is a great alternative to the Eclipse based IDE’s. Also, I think it might be possible to use the SWO to output debug printf’s directly into a VS Code console, but I haven’t figured out how the get that running. In the meantime, I’m using the JLinkSWOViewer GUI. Works well after incorporating your suggestions from the SWO issue #19 on Github. I have found that for the JLinkSWOViewer to connect properly, you need to specify “-device … -cpufreq … -swofreq …” on the command line and you need to already have a debug session running in VS Code.