Data type in debugger watch list hides variable value #2569
Labels
debug/variables
issues related to variables inspection/presentation
Debug
Issues related to the debugging functionality of the extension.
Milestone
Issue Type: Bug
When halting any Go program under debugger
dlv
, theVariables
andWatch
panes in theRun and Debug
panel show variables using their full, absolute type preceding its current value. With many nested packages, it makes values hard to see without expanding each individually.You can see in the attached screenshot that the entire
Variables
list is useless – it redundantly shows only the path prefix for local types defined in the current package being debugged.Is there any way to define the formatting for the watch/local variables? Or is there a way to modify how it shows the type?
For example, the language server
gopls
has a configuration option that narrows type paths:If the debugger can refer to that, great; otherwise, could a similar option in the Go extension's settings be added to copy this behavior?
Extension version: 0.36.0
VS Code version: Code 1.67.1 (Universal) (da15b6fd3ef856477bf6f4fb29ba1b7af717770d, 2022-05-06T12:37:16.526Z)
OS version: Darwin x64 21.6.0
Restricted Mode: No
System Info
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
The text was updated successfully, but these errors were encountered: