code-debug
code-debug copied to clipboard
Debug hover shows address of a reference, but not the value
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]
cwdandtargetare properly set
- [x]
- [ ] If you are using lldb
- [ ]
lldb --version>= 3.7.1 - [ ] it works on the command line with
lldb-mi - [ ]
cwdandtargetare 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.