plugins.dap.adapters.executables

Debug adapters of executable type. The adapters can also be set to a function which takes three arguments:

  • A on_config callback. This must be called with the actual adapter table.
  • The |dap-configuration| which the user wants to use.
  • An optional parent session. This is only available if the debug-adapter wants to start a child-session via a startDebugging request.

This can be used to defer the resolving of the values to when a configuration is used. A use-case for this is starting an adapter asynchronous.

Type: null or (attribute set of (string or (submodule)))

Default: null

Declared by:

plugins.dap.adapters.executables.<name>.args

Arguments for the command.

Type: null or (list of string)

Default: null

plugins.dap.adapters.executables.<name>.command

The command to invoke.

Type: null or string

Default: null

plugins.dap.adapters.executables.<name>.enrichConfig

A lua function (func(config, on_config)) which allows an adapter to enrich a configuration with additional information. It receives a configuration as first argument, and a callback that must be called with the final configuration as second argument.

Type: null or lua code string

Default: null

plugins.dap.adapters.executables.<name>.id

Identifier of the adapter. This is used for the adapterId property of the initialize request. For most debug adapters setting this is not necessary.

Type: null or string

Default: null