delve/Documentation/usage/dlv_connect.md
Alessandro Arzilli 4f5b74a651
cmd/dlv: support unix domain sockets (#3655)
Add support for listening on a unix domain socket in headless mode and
in the 'connect' command.

Fixes #3654
2024-02-07 11:04:45 -08:00

33 lines
880 B
Markdown

## dlv connect
Connect to a headless debug server with a terminal client.
### Synopsis
Connect to a running headless debug server with a terminal client. Prefix with 'unix:' to use a unix domain socket.
```
dlv connect addr [flags]
```
### Options
```
-h, --help help for connect
```
### Options inherited from parent commands
```
--backend string Backend selection (see 'dlv help backend'). (default "default")
--init string Init file, executed by the terminal client.
--log Enable debugging server logging.
--log-dest string Writes logs to the specified file or file descriptor (see 'dlv help log').
--log-output string Comma separated list of components that should produce debug output (see 'dlv help log')
```
### SEE ALSO
* [dlv](dlv.md) - Delve is a debugger for the Go programming language.