Archana Ravindar 464e62a0aa
cmd/dlv: support varying verbosity levels with trace subcommand (#4251)
* First draft implementation to print procedure parameters in trace

* Added code to propagate verbosity flag to terminal side also and
modified tests for expected output

* make output of function return consistent with function call for verbose level=0

* Regenerate Documentation file

* addressed review comments

* Making output at verbosity level 0 consistent with default output and
other comments

* regenerate Documentation file

* Addressed more review comments and refactored code based on recent commit
on pretty print API

* static check build error

* addressed review comment and removed superflous function

* fixed comment, and ran go fmt

* removed incorrect nomenclature from comments

* Add validation tests for traces with verbosity levels

* Correct output format for some types

* Remove TraceVerbosity from breakpoint and keep it in the terminal to
use it only for formatting

* Correct TraceVerbose tests to assert on output incl. formatting just like other trace tests

* remove leftorver t.Logf

* Cleaned up code, renamed trace-verbose to verbose and -V to -v
2026-04-08 10:27:38 -07:00
..
2024-12-16 12:30:47 -08:00
2024-12-16 12:30:47 -08:00

Using Delve

You can invoke Delve in multiple ways, depending on your usage needs. Delve makes every attempt to be user-friendly, ensuring the user has to do the least amount of work possible to begin debugging their program.

The available commands can be grouped into the following categories:

The above list may be incomplete. Refer to the auto-generated complete usage document to further explore all available commands.

Environment variables

Delve also reads the following environment variables:

  • $DELVE_EDITOR is used by the edit command (if it isn't set the $EDITOR variable is used instead)
  • $DELVE_PAGER is used by commands that emit large output (if it isn't set the $PAGER variable is used instead, if neither is set more is used)
  • $TERM is used to decide whether or not ANSI escape codes should be used for colorized output
  • $DELVE_DEBUGSERVER_PATH is used to locate the debugserver executable on macOS