plugins.dap.adapters.servers

Debug adapters of server 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.servers.<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.servers.<name>.host

Host to connect to.

Type: null or string or raw lua code

Default: null

Plugin default: "127.0.0.1"

plugins.dap.adapters.servers.<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

plugins.dap.adapters.servers.<name>.port

Port to connect to. If “${port}” dap resolves a free port. This is intended to be used with executable.args.

Type: null or signed integer or value “${port}” (singular enum)

Default: null