How to start debugging with the extension debug type

nRF Connect for VS Code

tags
nRF Connect for VS Code

The extension comes with the nrf-debug debug type that is meant for debugging applications compatible with the nRF Connect SDK using the Visual Studio Code debugger. There are two default options to start debugging using this debug type:

With the standard launch configuration, the active build configuration is flashed onto the device and debugging starts. When you start Debug from the Actions View for a sysbuild configuration, the extension asks you to select the processor sessions to start and the images at whose entry points execution must stop. All selected images for one processor are loaded into one GDB session. Selecting several processors starts a separate debug session for each processor.

Note

Make sure to enable debugging for the domain you want to debug.

The device does not start running until the debugger is connected.

Tips

For additional information about debugging in Visual Studio Code, read its debugging documentation.