delve icon indicating copy to clipboard operation
delve copied to clipboard

align the output of vars with 'expresson' spec

Open shawndx opened this issue 1 year ago • 0 comments

Please answer the following before submitting your issue:

Note: Please include any substantial examples (debug session output, stacktraces, etc) as linked gists.

If this is about source listing not showing up (or breakpoints not being accepted) while running in a container please read our FAQ first.

  1. What version of Delve are you using (dlv version)?

Delve Debugger Version: 1.23.0 Build: $Id: e673f2da02185a1c2b6dea52842b0a8c7e7a03b9 $

  1. What version of Go are you using? (go version)?

go version go1.20.14 linux/amd64

  1. What operating system and processor architecture are you using?

linux/amd64

  1. What did you do?

% build a helloword case, with debug enabled % lauch "dlv exec ./hello" % run and break, then execute "vars" command % pick up a variable to print, say "print internal/bytealg.MaxLen"

  1. What did you expect to see?

Suggest "vars" outputs variable expressions in the format that "print" recognizes, as https://github.com/go-delve/delve/blob/master/Documentation/cli/expr.md#specifying-package-paths defines.

Take internal/bytealg.MaxLen as an example, "internal/bytealg".MaxLen might be better.

  1. What did you see instead?

shawndx avatar Jul 30 '24 04:07 shawndx