Skip to content

Support printing function parameters with varying verbosity levels [0 .. 4] with the -trace option#4251

Open
archanaravindar wants to merge 15 commits intogo-delve:masterfrom
archanaravindar:funcp
Open

Support printing function parameters with varying verbosity levels [0 .. 4] with the -trace option#4251
archanaravindar wants to merge 15 commits intogo-delve:masterfrom
archanaravindar:funcp

Conversation

@archanaravindar
Copy link
Contributor

Fixes #3586
The current implementation supports the following verbosity levels
Verbosity Levels:

  • Level 0: No parameter output (just function name)
  • Level 1: Type names only (e.g., <int>, <Person>)
  • Level 2: Inline values, limited depth (default)
  • Level 3: Multi-line, expanded detail
  • Level 4: Full detail with pointer dereferencing

To give an idea of what the output looks like pls refer to the attached .go test file and the related output seen with -trace and -trace-follow options
plainout.txt
testout.txt
traceverbcomplex.zip

@archanaravindar archanaravindar force-pushed the funcp branch 2 times, most recently from e6cf06d to 4a6fdbf Compare February 23, 2026 09:18
@archanaravindar archanaravindar force-pushed the funcp branch 2 times, most recently from 2a092b6 to ed8f0fb Compare March 5, 2026 06:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Can dlv trace print the value of the arguments passed to a function?

3 participants