gitlab.com/Raven-IO/raven-delve@v1.22.4/Documentation/usage/dlv_redirect.md (about) 1 ## dlv redirect 2 3 Help about file redirection. 4 5 ### Synopsis 6 7 The standard file descriptors of the target process can be controlled using the '-r' and '--tty' arguments. 8 9 The --tty argument allows redirecting all standard descriptors to a terminal, specified as an argument to --tty. 10 11 The syntax for '-r' argument is: 12 13 -r [source:]destination 14 15 Where source is one of 'stdin', 'stdout' or 'stderr' and destination is the path to a file. If the source is omitted stdin is used implicitly. 16 17 File redirects can also be changed using the 'restart' command. 18 19 20 ### Options 21 22 ``` 23 -h, --help help for redirect 24 ``` 25 26 ### Options inherited from parent commands 27 28 ``` 29 --accept-multiclient Allows a headless server to accept multiple client connections via JSON-RPC or DAP. 30 --allow-non-terminal-interactive Allows interactive sessions of Delve that don't have a terminal as stdin, stdout and stderr 31 --api-version int Selects JSON-RPC API version when headless. New clients should use v2. Can be reset via RPCServer.SetApiVersion. See Documentation/api/json-rpc/README.md. (default 1) 32 --backend string Backend selection (see 'dlv help backend'). (default "default") 33 --build-flags string Build flags, to be passed to the compiler. For example: --build-flags="-tags=integration -mod=vendor -cover -v" 34 --check-go-version Exits if the version of Go in use is not compatible (too old or too new) with the version of Delve. (default true) 35 --disable-aslr Disables address space randomization 36 --headless Run debug server only, in headless mode. Server will accept both JSON-RPC or DAP client connections. 37 --init string Init file, executed by the terminal client. 38 -l, --listen string Debugging server listen address. Prefix with 'unix:' to use a unix domain socket. (default "127.0.0.1:0") 39 --log Enable debugging server logging. 40 --log-dest string Writes logs to the specified file or file descriptor (see 'dlv help log'). 41 --log-output string Comma separated list of components that should produce debug output (see 'dlv help log') 42 --only-same-user Only connections from the same user that started this instance of Delve are allowed to connect. (default true) 43 -r, --redirect stringArray Specifies redirect rules for target process (see 'dlv help redirect') 44 --wd string Working directory for running the program. 45 ``` 46 47 ### SEE ALSO 48 49 * [dlv](dlv.md) - Delve is a debugger for the Go programming language. 50