DLV-REDIRECT(1)

πŸ’– dlv-redirect β€” a.k.a. the "where do your outputs GO" era πŸ’–

okay bestie, this is a General Commands Manual page for the dlv-redirect command, and it's literally just the help page about file redirection. yes, the whole thing. it's giving "small but mighty." πŸŽ€


✨ NAME ✨

dlv-redirect β€” help about file redirection. that's it. that's the assignment. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

dlv redirect [flags]

🌸 DESCRIPTION 🌸

so here's the tea: the standard file descriptors of the target process can be controlled using the -r and --tty arguments. yes, both. they're a duo. πŸ‘‘

the --tty argument lets you redirect all standard descriptors to a terminal β€” and you specify that terminal as an argument to --tty. cute, right?

now, the syntax for the -r argument is:

-r [source:]destination

where source is one of stdin, stdout or stderr, and destination is the path to a file. and bestie, listen: if you omit the source, stdin is used implicitly. it just assumes. default behavior energy. πŸ™ˆ

also!! file redirects can be changed using the restart command. so if you messed up your redirects, you're not stuck, you can pivot. main character flexibility. ✨


πŸ’… OPTIONS πŸ’…

  • -h, --help[=false] β€” help for redirect. the classic. the icon. press it when you're lost (no shame).

πŸ‘‘ OPTIONS INHERITED FROM PARENT COMMANDS πŸ‘‘

these came from the parent command, they're not even redirect's own kids, but they show up anyway. nepotism? no, just cobra. 🌈

  • --accept-multiclient[=false] β€” Allows a headless server to accept multiple client connections via JSON-RPC or DAP.
  • --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 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.
  • --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.
  • --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.
  • -r, --redirect=[] β€” Specifies redirect rules for target process (see 'dlv help redirect')
  • --wd="" β€” Working directory for running the program.
not me realizing --only-same-user defaults to true β€” yes bestie, that's the safe default, don't come for me 😭

πŸ”₯ SEE ALSO πŸ”₯

  • dlv(1) β€” go say hi to the parent, they raised a whole family 🫢

and that's the whole page, no cap. it was Auto generated by spf13/cobra, and it's dated Aug 2026 at the bottom of the original, so consider this your signature: cobra wrote it, the calendar says Aug 2026, and i just made it cute. periodt. πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from