Skip to content

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

Description

@shawndx

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions