diff --git a/docs/debugging.md b/docs/debugging.md index 4d2b9e174e..ed44d30fab 100644 --- a/docs/debugging.md +++ b/docs/debugging.md @@ -452,6 +452,8 @@ Here is the list of attributes specific to Go debugging. | `dlvFlags` | Extra flags for `dlv`. See `dlv help` for the full list of supported. Flags such as `--log-output`, `--log`, `--log-dest`, `--api-version`, `--output`, `--backend` already have corresponding properties in the debug configuration, and flags such as `--listen` and `--headless` are used internally. If they are specified in `dlvFlags`, they may be ignored or cause an error.
|
_same as Launch_
| | `env` | Environment variables passed to the launched debuggee program. Format as string key:value pairs. Merged with `envFile` and `go.toolsEnvVars` with precedence `env` > `envFile` > `go.toolsEnvVars`.
|
_n/a_
| | `envFile` | Absolute path to a file containing environment variable definitions, formatted as string key=value pairs. Multiple files can be specified by provided an array of absolute paths. Merged with `env` and `go.toolsEnvVars` with precedence `env` > `envFile` > `go.toolsEnvVars`.
|
_n/a_
| +| `followExec` | (Experimental) Enables or disables follow exec mode.
(Default: `false`)
|
_n/a_
| +| `followExecRegex` | (Experimental) Regular expression. Only child processes with a command line that matches this regular expression will be followed during 'target follow-exec'.
(Default: `""`)
|
_n/a_
| | `goroutineFilters` | Configures which system goroutines should be shown in the call stack. See https://github.com/go-delve/delve/blob/master/Documentation/cli/README.md#goroutines
(Default: `""`)
|
_same as Launch_
| | `hideSystemGoroutines` | Boolean value to indicate whether system goroutines should be hidden from call stack view.
(Default: `false`)
|
_same as Launch_
| | `host` | When applied to remote-attach configurations, will look for "dlv ... --headless --listen=:" server started externally. In dlv-dap mode this will apply to all other configurations as well. The extension will try to connect to an external server started with "dlv dap --listen=:" to ask it to launch/attach to the target process.
(Default: `"127.0.0.1"`)
| When applied to remote-attach configurations, will look for "dlv ... --headless --listen=:" server started externally. In dlv-dap mode, this will apply to all other configurations as well. The extension will try to connect to an external server started with "dlv dap --listen=:" to ask it to launch/attach to the target process.
(Default: `"127.0.0.1"`)
| diff --git a/extension/package.json b/extension/package.json index c5a845161d..e5ec9a5a81 100644 --- a/extension/package.json +++ b/extension/package.json @@ -906,6 +906,16 @@ }, "description": "Configures which pprof lables to show as the goroutine name in the threads view", "default": [] + }, + "followExec": { + "default": false, + "description": "(Experimental) Enables or disables follow exec mode.", + "type": "boolean" + }, + "followExecRegex": { + "default": "", + "description": "(Experimental) Regular expression. Only child processes with a command line that matches this regular expression will be followed during 'target follow-exec'.", + "type": "string" } } },