code-debug icon indicating copy to clipboard operation
code-debug copied to clipboard

Debug hover shows address of a reference, but not the value

Open konradsa opened this issue 5 years ago • 0 comments

If submitting a bug please make sure

  • [x] If you are using gdb
    • [x] gdb --version >= 7.7.1
    • [x] it works on the command line with gdb
    • [x] cwd and target are properly set
  • [ ] If you are using lldb
    • [ ] lldb --version >= 3.7.1
    • [ ] it works on the command line with lldb-mi
    • [ ] cwd and target are properly set

When hovering over a reference in Vscode, hover text shows the address of the reference, but not the value.

Printing the value in the debug console shows both, for example for a variable declared as const bool& value:

p value $1 = (const bool &) @0x7fffffffd50f: true

If both cannot be shown, would probably prefer to see the value rather than the address.

konradsa avatar Aug 25 '20 13:08 konradsa