Merge pull request #3375 from jsternberg/update-dap-docs
docs: update dap docs to reflect updates to the debugger
This commit is contained in:
@@ -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`.
|
||||
|
||||
Reference in New Issue
Block a user