New Configure debugging button

nRF Connect for VS Code

tags
nRF Connect for VS Code

We added a configuration button for the Debug button in the Actions View. This button acts as a shortcut for creating a launch.json file to add custom launch and debug configurations. Hover your cursor over the Debug button to reveal the Configure debugging button with the cogwheel icon.

The Configure debugging button is similar to the Bind Task to Action button for building and flashing options. Unlike the task binding, however, you can only configure one launch configuration for each build. Additionally, you can instantly configure the current configuration and bind it at the same time.

Configure debugging button

This new feature allows you also to add custom parameters to the launch.json file and later commit them to share it with other users. Any launch configuration can be bound to the Actions View > Debug button.

If you have a customized Cortex Debug or even a Python launch configuration that you would like to trigger on a specific build, you can do so from the context menu. As this adds the debug configuration to a launch.json file, you can also start debugging from VS Code's Activity Bar > Run and Debug by selecting the launch configuration in the Run and Debug Sidebar View.