gitlab.com/Raven-IO/raven-delve@v1.22.4/Documentation/usage/dlv_dap.md (about)

     1  ## dlv dap
     2  
     3  Starts a headless TCP server communicating via Debug Adaptor Protocol (DAP).
     4  
     5  ### Synopsis
     6  
     7  Starts a headless TCP server communicating via Debug Adaptor Protocol (DAP).
     8  
     9  The server is always headless and requires a DAP client like VS Code to connect and request a binary
    10  to be launched or a process to be attached to. The following modes can be specified via the client's launch config:
    11  - launch + exec   (executes precompiled binary, like 'dlv exec')
    12  - launch + debug  (builds and launches, like 'dlv debug')
    13  - launch + test   (builds and tests, like 'dlv test')
    14  - launch + replay (replays an rr trace, like 'dlv replay')
    15  - launch + core   (replays a core dump file, like 'dlv core')
    16  - attach + local  (attaches to a running process, like 'dlv attach')
    17  
    18  Program and output binary paths will be interpreted relative to dlv's working directory.
    19  
    20  This server does not accept multiple client connections (--accept-multiclient).
    21  Use 'dlv [command] --headless' instead and a DAP client with attach + remote config.
    22  While --continue is not supported, stopOnEntry launch/attach attribute can be used to control if
    23  execution is resumed at the start of the debug session.
    24  
    25  The --client-addr flag is a special flag that makes the server initiate a debug session
    26  by dialing in to the host:port where a DAP client is waiting. This server process
    27  will exit when the debug session ends.
    28  
    29  ```
    30  dlv dap [flags]
    31  ```
    32  
    33  ### Options
    34  
    35  ```
    36        --client-addr string   host:port where the DAP client is waiting for the DAP server to dial in
    37    -h, --help                 help for dap
    38  ```
    39  
    40  ### Options inherited from parent commands
    41  
    42  ```
    43        --check-go-version    Exits if the version of Go in use is not compatible (too old or too new) with the version of Delve. (default true)
    44        --disable-aslr        Disables address space randomization
    45    -l, --listen string       Debugging server listen address. Prefix with 'unix:' to use a unix domain socket. (default "127.0.0.1:0")
    46        --log                 Enable debugging server logging.
    47        --log-dest string     Writes logs to the specified file or file descriptor (see 'dlv help log').
    48        --log-output string   Comma separated list of components that should produce debug output (see 'dlv help log')
    49        --only-same-user      Only connections from the same user that started this instance of Delve are allowed to connect. (default true)
    50  ```
    51  
    52  ### SEE ALSO
    53  
    54  * [dlv](dlv.md)	 - Delve is a debugger for the Go programming language.
    55