Merge pull request #3375 from jsternberg/update-dap-docs

docs: update dap docs to reflect updates to the debugger
This commit is contained in:
Tõnis Tiigi
2025-08-27 15:03:15 -07:00
committed by GitHub
2 changed files with 13 additions and 45 deletions
+4 -2
View File
@@ -75,13 +75,15 @@ The following [launch request arguments](https://microsoft.github.io/debug-adapt
Command line arguments may be passed to the debug adapter the same way they would be passed to the normal build command and they will set the value.
Launch request arguments that are set will override command line arguments if they are present.
A debug extension should include an `args` entry in the launch configuration and should append these arguments to the end of the tool invocation.
A debug extension should include an `args` and `builder` entry in the launch configuration. These will modify the arguments passed to the binary for the tool invocation.
`builder` will add `--builder <arg>` directly after the executable and `args` will append to the end of the tool invocation.
For example, a launch configuration in Visual Studio Code with the following:
```json
{
"args": ["--build-arg", "FOO=AAA"]
"builder": ["mybuilder"]
}
```
This should cause the debug adapter to be invoked as `docker buildx dap build --build-arg FOO=AAA`.
This should cause the debug adapter to be invoked as `docker buildx --builder mybuilder dap build --build-arg FOO=AAA`.