All apps/Delve

Delve

delve

A debugger for the Go programming language.

Runs as dlv|macOS, Linux, Windows|github.com

Command form

ai-draft · 3 tasks · 18 fields

Start a Delve debug session for a package, its tests or a built binary. Attach, core, trace, DAP and redirect options are left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui delve

dlv debug

Debug a package
Debug a packageExample values, fixed in this page — nothing here reaches a terminal
Basic
Package
string
Continue on start
--continue
Advanced
Build flags
string
TasksEach one presets the form for one job
Debug a package
packagecontinuebuild_flags
ParametersOnly these flags are editable in the form
Package
Defaults to the main package in the current directory.
string · positional 0
Continue on start
boolean
--continue
Binary output path
path
--output
Build flags
Passed to the Go compiler, e.g. -tags=integration.
string
--build-flags
Headless server
Run the debug server only, without a terminal client.
boolean
--headless
Listen address
string
--listen-l
Working directory
path
--wd

dlv test

Debug tests
Debug testsExample values, fixed in this page — nothing here reaches a terminal
Basic
Package
string
Advanced
Build flags
string
TasksEach one presets the form for one job
Debug package tests
packagebuild_flags
ParametersOnly these flags are editable in the form
Package
Defaults to the package in the current directory.
string · positional 0
Test binary output path
path
--output
Build flags
Passed to the Go compiler, e.g. -tags=integration.
string
--build-flags
Headless server
Run the debug server only, without a terminal client.
boolean
--headless
Listen address
string
--listen-l
Working directory
path
--wd

dlv exec

Debug a binary
Debug a binaryExample values, fixed in this page — nothing here reaches a terminal
Basic
Binary*
file
Continue on start
--continue
TasksEach one presets the form for one job
Debug a binary
binarycontinue
ParametersOnly these flags are editable in the form
Binary
path · positional 0
Continue on start
boolean
--continue
Headless server
Run the debug server only, without a terminal client.
boolean
--headless
Listen address
string
--listen-l
Working directory
path
--wd
SourcesEvery flag above is checked against these
src
dlv debug [package] [flags] --continue Continue the debugged process on start. --output string Output path for the binary. --build-flags string Build flags, to be passed to the compiler. For example: --build-flags="-tags=integration -mod=vendor -cover -v" --headless Run debug server only,…
help

github.com

src
dlv test [package] [flags] --output string Output path for the binary. --build-flags string Build flags, to be passed to the compiler. For example: --build-flags="-tags=integration -mod=vendor -cover -v" --headless Run debug server only, in headless mode. Server will accept both JSON-RPC or DAP client…
help

github.com

src
dlv exec <path/to/binary> [flags] --continue Continue the debugged process on start. --headless Run debug server only, in headless mode. Server will accept both JSON-RPC or DAP client connections. -l, --listen string Debugging server listen address. Prefix with 'unix:' to use a unix domain socket.…
help

github.com

Before it fills your prompt, Otty checks the installed dlv against its version. A form that does not match your version is not offered.