DLV-DEBUG(1)

πŸ’– DLV-DEBUG(1) πŸ’–

okay bestie, welcome to the General Commands Manual era β€” this is dlv-debug, like, the debug command for Delve πŸ¦‹ and she is so good at her job.


✨ NAME ✨

dlv-debug β€” compile and begin debugging the main package in the current directory, or whatever package you point at. no cap.


πŸŽ€ SYNOPSIS πŸŽ€

dlv debug [package] [flags]

🌸 DESCRIPTION 🌸

So the way this works is: Delve compiles your program with optimizations disabled, then starts it and attaches to it. that's it, that's the whole vibe πŸ’…

By default β€” like, no arguments at all β€” Delve will compile the main package in the current directory and start debugging it. main character behavior honestly. 🌟

But alternatively?? you can specify a package name, and Delve will compile that package instead and begin a brand new debug session. slay. πŸ”₯


πŸ‘‘ OPTIONS πŸ‘‘

  • --continue[=false] β€” continue the debugged process on start. yeah, just keep it running, periodt.
  • -h, --help[=false] β€” help for debug 🫢 (for when you're lost, we've all been there)
  • --output="" β€” output path for the binary. tell her where to put the goods ✨
  • --rr-cleanup[=true] β€” delete the directory containing the debug recording on detach. bye bye recording directory 🧹
  • --tty="" β€” TTY to use for the target program 🌈

πŸ’œ OPTIONS INHERITED FROM PARENT COMMANDS πŸ’œ

these are the ones she inherited from dlv herself, iconic family tree πŸ’–

  • --accept-multiclient[=false] β€” allows a headless server to accept multiple client connections via JSON-RPC or DAP. the more the merrier πŸŽ‰
  • --allow-non-terminal-interactive[=false] β€” allows interactive sessions of Delve that don't have a terminal as stdin, stdout and stderr 🫧
  • --api-version=2 β€” selects the JSON-RPC API version when headless. The only valid value is 2. Can be reset via RPCServer.SetApiVersion. See Documentation/api/json-rpc/README.md.
  • --backend="default" β€” backend selection (see 'dlv help backend').
  • --build-flags="" β€” build flags, to be passed to the compiler. For example: --build-flags="-tags=integration -mod=vendor -cover -v" πŸ”¨
  • --check-go-version[=true] β€” exits if the version of Go in use is not compatible (too old or too new) with the version of Delve. she's picky, and honestly? valid.
  • --disable-aslr[=false] β€” disables address space randomization 🎲
  • --headless[=false] β€” run debug server only, in headless mode. Server will accept both JSON-RPC or DAP client connections. no face, all brain 🧠
  • --init="" β€” init file, executed by the terminal client.
  • -l, --listen="127.0.0.1:0" β€” debugging server listen address. Prefix with 'unix:' to use a unix domain socket 🧦
  • --log[=false] β€” enable debugging server logging.
  • --log-dest="" β€” writes logs to the specified file or file descriptor (see 'dlv help log').
  • --log-output="" β€” comma separated list of components that should produce debug output (see 'dlv help log') πŸ“
  • --only-same-user[=true] β€” only connections from the same user that started this instance of Delve are allowed to connect. exclusive fr fr πŸ”’
  • -r, --redirect=[] β€” specifies redirect rules for target process (see 'dlv help redirect') πŸ”€
  • --wd="" β€” working directory for running the program.

🌟 SEE ALSO 🌟


lowkey a whole moment that this page was auto generated by spf13/cobra, and bestie it's dated Aug 2026 β€” so like, go forth and debug, you absolute icon, you got this πŸŽ€πŸ’–βœ¨πŸ¦‹
πŸ“¦ where this page comes from