DLV(1)
π DLV(1) β the Delve era π
okay bestie, sit DOWN, because we're talking about dlv β aka Delve, the debugger for the Go programming language, and honestly? she's iconic. this is from the General Commands Manual, section 1, and she is ready to spill everything about your program π
β¨ NAME β¨
dlv β Delve is a debugger for the Go programming language. that's it, that's the name, no notes π«Ά
π SYNOPSIS π
dlv [flags]
like... just the flags, babe. that's the whole entrance. main character energy fr fr π
πΈ DESCRIPTION πΈ
Delve is a source level debugger for Go programs. source level, meaning she sees your code the way you wrote it, not as cryptic machine nonsense. slay π₯
Delve lets you interact with your program by controlling the execution of the process, evaluating variables, and providing information of thread / goroutine state, CPU register state and more. like, she will literally tell you what every goroutine is doing. no cap. π¦
The goal of this tool is to provide a simple yet powerful interface for debugging Go programs. simple and powerful?? it's giving duality, it's giving range π
π passing flags to the program you're debugging
the way that you need a -- to hand flags over to your program and not to Delve β the -- is the boundary, respect it β¨ for example:
dlv exec ./hello -- server --config conf/config.toml
everything after the -- goes to ./hello, everything before it is Delve's business π
π OPTIONS π
every single one, in order, no skipping, we do not gatekeep here π«Ά
--accept-multiclient[=false]β Allows a headless server to accept multiple client connections via JSON-RPC or DAP. bestie said "the more the merrier" π default isfalse.--allow-non-terminal-interactive[=false]β Allows interactive sessions of Delve that don't have a terminal as stdin, stdout and stderr. defaultfalse, so flip it if you're being weird about your terminal π--api-version=2β Selects JSON-RPC API version when headless. The only valid value is2. Can be reset viaRPCServer.SetApiVersion. SeeDocumentation/api/json-rpc/README.md. the only valid value is 2, so don't try anything cute π--backend="default"β Backend selection (see'dlv help backend'). default is literally"default", she said what she said π--build-flags=""β Build flags, to be passed to the compiler. For example:--build-flags="-tags=integration -mod=vendor -cover -v"β look at that example, it's giving β¨ attention to detail β¨ default is empty.--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. the vibe check on your Go version, fr π default istrue.--disable-aslr[=false]β Disables address space randomization. defaultfalse, so ASLR stays on unless you say otherwise π--headless[=false]β Run debug server only, in headless mode. Server will accept both JSON-RPC or DAP client connections. no interactive session, just vibes π§ defaultfalse.-h,--help[=false]β help fordlv. when you're lost, she's got you π«Ά--init=""β Init file, executed by the terminal client. default is empty, so nothing gets run on startup unless you bring your own script πΈ-l,--listen="127.0.0.1:0"β Debugging server listen address. Prefix with'unix:'to use a unix domain socket. default is"127.0.0.1:0"β localhost only, as she should π--log[=false]β Enable debugging server logging. defaultfalse. turn it on when you're in your detective era π--log-dest=""β Writes logs to the specified file or file descriptor (see'dlv help log'). default empty. psst β'dlv help log'has the lore π--log-output=""β Comma separated list of components that should produce debug output (see'dlv help log'). comma separated, bestie, don't forget the commas π default empty.--only-same-user[=true]β Only connections from the same user that started this instance of Delve are allowed to connect. security queen π‘οΈ default istrue.-r,--redirect=[]β Specifies redirect rules for target process (see'dlv help redirect'). default is an empty list[]. go read'dlv help redirect'for the full tea β--wd=""β Working directory for running the program. default empty. she'll run your program wherever you tell her π
π«Ά quick vibe check, bestie: options with[=...]are booleans you can toggle, and nothing here is scary β just read the description before you go flipping defaults, okay? especially--only-same-user[=true]and--check-go-version[=true], which aretrueout of the box for a reason π
π SEE ALSO π
go read her sisters, the whole family is stunning:
dlv-attach(1)dlv-connect(1)dlv-core(1)dlv-dap(1)dlv-debug(1)dlv-exec(1)dlv-replay(1)dlv-test(1)dlv-trace(1)dlv-version(1)
and that's the page, babes π this one's dated Aug 2026 and comes to you from the DLV(1) section of the General Commands Manual β go debug something iconic, bestie π₯π
π¦ 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