Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

align the output of vars with 'expresson' spec #3786

Open
shawndx opened this issue Jul 30, 2024 · 0 comments
Open

align the output of vars with 'expresson' spec #3786

shawndx opened this issue Jul 30, 2024 · 0 comments

Comments

@shawndx
Copy link

shawndx commented Jul 30, 2024

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?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants