You can customize and bind specific actions when launching the debugger in VS Code, similarly to the build and flash task configuration.
To tweak the debugging configuration for your specific setup, open and edit a launch.json file.
This allows you to launch the debugger with custom debugging setup, including:
- Visual Studio Code's native launch.json attributes;
-
extension-specific configuration fields for debugging with the extension's debug type. These configuration fields allow you to do the following actions:
- Launch against a server that already runs.
- Target non-localhost servers.
- Use servers other than SEGGER's (for example, west debug).
- Run without a configured toolchain.
- Skip specific functions and files during debugging.
You can read more about the general uses of launch configurations in Visual Studio Code's launch configuration documentation.
There are two ways to open a launch.json file and start adding custom debugging configurations.