From d513b6da45f739d177023ea305538c18b448429b Mon Sep 17 00:00:00 2001 From: polinasok <51177946+polinasok@users.noreply.github.com> Date: Tue, 3 May 2022 10:35:56 -0700 Subject: [PATCH] Documentation: add DAP launch/attach configuration matrix (#2991) Co-authored-by: Polina Sokolova --- Documentation/api/dap/README.md | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/Documentation/api/dap/README.md b/Documentation/api/dap/README.md index fa906c62..a67b1d52 100644 --- a/Documentation/api/dap/README.md +++ b/Documentation/api/dap/README.md @@ -22,8 +22,34 @@ See [dap.Server.handleRequest](https://github.com/go-delve/delve/search?q=handle ## Launch and Attach Configurations In addition to the general [DAP spec](https://microsoft.github.io/debug-adapter-protocol/specification), the server supports the following implementation-specific configuration options for starting the debug session: - * [LaunchRequestArguments](https://microsoft.github.io/debug-adapter-protocol/specification#Requests_Launch) - see [LaunchConfig godoc](https://pkg.go.dev/github.com/go-delve/delve/service/dap#LaunchConfig) - * [AttachRequestArguments](https://microsoft.github.io/debug-adapter-protocol/specification#Requests_Attach) - see [AttachConfig godoc](https://pkg.go.dev/github.com/go-delve/delve/service/dap#AttachConfig) + + + + + + + + + + + + + + + +
requestmoderequiredoptional
launch
godoc +
debugprogram dlvCwdenvbackendargscwdbuildFlagsoutputnoDebug + + substitutePath
+ stopOnEntry
+ stackTraceDepth
+ showGlobalVariables
+ showRegisters
+ hideSystemGoroutines
+ goroutineFilters +
testprogram dlvCwdenvbackendargscwdbuildFlagsoutputnoDebug
execprogram dlvCwdenvbackendargscwd noDebug
coreprogram
corefilePath
dlvCwdenv
replaytraceDirPath dlvCwdenv
attach
godoc +
localprocessId backend
remote
+ Not all of the configurations are supported by each of the two available DAP servers: