How to enable debugging after building

nRF Connect for VS Code

tags
nRF Connect for VS Code

If you forgot to enable the full set of debugging options during the build configuration step, complete the following steps:

  1. Right-click the build configuration (or sysbuild domain).
    The drop-down menu appears.
  2. Click Edit Build Configuration (or Edit Sysbuild Domains).
  3. On the page for editing the configuration, depending on the debugging features you want to enable, set one or both of the following options:

    • In the Optimization level (size, speed, or debugging) drop-down menu, select Optimize for debugging if you want to enable debug options and see the memory content in the Memory Explorer.
    • Enable Include debug thread information if you also want to include thread information in the build and see threads and stack usage in the Thread Viewer. The Viewer is only available when the Optimize for debugging optimization level is also selected.

    For sysbuild domains, you can set these options independently for each domain.

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

  5. Click Generate and Build.
    The build configuration is rebuilt with the debug options enabled.
    If you have edited just one sysbuild domain, all sysbuild domains are rebuilt to enable debugging on the domain you edited.