Skip to main content

Advanced Debugging

note

This chapter is about debugging with JLink, if you don’t have one you can always debug with console printing.

If you have a JLink probe, you can use our Visual Studio Code extension to debug your firmware with it. You will need to install the extension first, for it we have a special chapter in this documentation.

There is a little difference between installation with the Portable version and the standalone extension.

Debugging with Portable Version

If you downloaded our Portable version of Visual Studio Code you should have all the required dependencies in the /data(Windows/Linux) or code-portable-data (macOS) folder.

info

The only thing that you will need to install is JLink drivers if you don’t have them already.

Driver Installation

Go to the hardwario-code/data/tower/toolchain/SEGGER/JLink/USBDriver/ and run the InstDrivers.exe binary.

After that, you should be good to go.

Debugging with Visual Studio Code Extension

If you did choose to use your own Visual Studio Code with our extension installed you will have to follow the JLink installation for your system.