Skip to content
Advertisement

Default expanded variables in VSCode Java debugger

I’m using VSCode for Java development, and at some point in time, the debugging variables do not show the toString() results by default. I have to click on the eyeball icon that has “Click to expand” tooltip. In the example below, the Boolean before and after expanding. Stepping through the code cases the view to reset to non-expanded. How do I get the value to show by default?

Variables view

Variables view after expanding

Advertisement

Answer

You can enable this setting debug.autoExpandLazyVariables

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement