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 is2. Can be reset viaRPCServer.SetApiVersion. SeeDocumentation/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
- ubuntu stonking: delve 1.27.1-4 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms