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:
- Connect to an existing remote GDB server.
- Load multiple ELF images as GDB inferiors.
- Select the images at whose entry points the debugger stops.
- 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.