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

Debug window type output does not respect any of GDB's `TypePrinter`s

Open Walnut356 opened this issue 10 months ago • 1 comments

Version: 0.27.0

VSCode can display variable type names in the debug pane via the option settings -> Features -> Debug -> Show Variable Types. GDB's python API has support to customize the displayed type of a value. This can lead to situations where the debug pane does not match GDB's output.

Debug pane:

Image

Terminal:

Image

Walnut356 avatar Jan 21 '25 07:01 Walnut356

I think you say that the terminal prints it "as expected" but the variable view does not use the setup type printers, right?

Can you provide a debug log (=trace) so we see what is executed in both cases, by re-running after adding showDevDebugOutput: true, printCalls: true, to your launch config and copy the debug console's output here, please?

GitMensch avatar Mar 03 '25 09:03 GitMensch