How to enable debugging

nRF Connect for VS Code

tags
nRF Connect for VS Code

Complete the following steps to enable debugging, if you have not already done so when setting up a build configuration:

  1. Make sure that your device is connected to your computer with a USB cable.
  2. Right-click the build configuration in the Applications View.
    A drop-down menu appears.

    Where to find Edit Build Configuration

  3. Click Edit Build Configuration.
    The build configuration screen opens.

  4. On the Edit Build Configuration screen, go to the Optimization level (size, speed, or debugging) drop-down menu.
  5. In the menu, select Optimize for debugging.

    Optimization for debugging selected

  6. Make sure the Include debug thread information option is selected.

    Include debug thread information is selected

  7. Make sure the Generate only checkbox is not selected.

    Generate only is not selected

  8. Click Generate and Build.
    The extension rebuilds the build configuration with the full set of debug options enabled and flashes the device automatically.