Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 287
Brian Michalk Avatar asked Jul 29 '26 09:07

Brian Michalk


1 Answers

You can enable this setting debug.autoExpandLazyVariables

like image 112
Sheng Chen Avatar answered Jul 31 '26 02:07

Sheng Chen