delve/Documentation/usage
Nilesh Singh 8b878fb238
cmds/commands: Update 'client-addr' to support Unix domain sockets (#3819)
* cmds/commands: Update 'client-addr' to support Unix domain sockets

This change updates the '--client-addr' flag to accept Unix domain sockets (UDS). Currently, the --listen flag supports UDS, but --client-addr does not. This modification ensures consistency across the APIs and improves support for vscode-go, which uses reverse mode (via client-addr) to connect to DAP.

Fixes #3814

* Undo formatter changes in dlv_test.go

* Update commands.go
2024-09-30 11:20:48 -07:00
..
dlv_attach.md cmd/dlv: support unix domain sockets (#3655) 2024-02-07 11:04:45 -08:00
dlv_backend.md proc/gdbserial: add environment variables to configure rr invocation (#3726) 2024-05-24 11:33:23 -07:00
dlv_connect.md cmd/dlv: support unix domain sockets (#3655) 2024-02-07 11:04:45 -08:00
dlv_core.md cmd/dlv: support unix domain sockets (#3655) 2024-02-07 11:04:45 -08:00
dlv_dap.md cmds/commands: Update 'client-addr' to support Unix domain sockets (#3819) 2024-09-30 11:20:48 -07:00
dlv_debug.md cmd/dlv: support unix domain sockets (#3655) 2024-02-07 11:04:45 -08:00
dlv_exec.md cmd/dlv: support unix domain sockets (#3655) 2024-02-07 11:04:45 -08:00
dlv_log.md cmd/dlv: support unix domain sockets (#3655) 2024-02-07 11:04:45 -08:00
dlv_redirect.md cmd/dlv: support unix domain sockets (#3655) 2024-02-07 11:04:45 -08:00
dlv_replay.md cmd/dlv: support unix domain sockets (#3655) 2024-02-07 11:04:45 -08:00
dlv_run.md cmd/dlv: support unix domain sockets (#3655) 2024-02-07 11:04:45 -08:00
dlv_test.md cmd/dlv: support unix domain sockets (#3655) 2024-02-07 11:04:45 -08:00
dlv_trace.md pkg/terminal,service/debugger: Support to add a new suboption --follow-calls to trace subcommand (#3594) 2024-06-12 12:35:48 -07:00
dlv_version.md cmd/dlv: support unix domain sockets (#3655) 2024-02-07 11:04:45 -08:00
dlv.md Documentation,cmd/dlv: clean up command line usage help (#3395) 2023-08-09 10:37:55 -07:00
README.md terminal: send large output to pager (#3060) 2022-08-17 09:02:53 +02:00

Using Delve

You can invoke Delve in multiple ways, depending on your usage needs. Delve makes every attempt to be user-friendly, ensuring the user has to do the least amount of work possible to begin debugging their program.

The available commands can be grouped into the following categories:

The above list may be incomplete. Refer to the auto-generated complete usage document to further explore all available commands.

Environment variables

Delve also reads the following environment variables:

  • $DELVE_EDITOR is used by the edit command (if it isn't set the $EDITOR variable is used instead)
  • $DELVE_PAGER is used by commands that emit large output (if it isn't set the $PAGER variable is used instead, if neither is set more is used)
  • $TERM is used to decide whether or not ANSI escape codes should be used for colorized output
  • $DELVE_DEBUGSERVER_PATH is used to locate the debugserver executable on macOS