Visual Studio 2022 IEnumerable Visualizer on large <list>

Viewed 37

Debugging some C# code here in Visual studio 2022. DmDt[] is a List <DateTime> List which has been read in from a data file and has a large number of values. Is there a way to force VS to show the value of DmDt[DmIdx] when hovering the mouse like it does for integers, strings etc.. ?

There are other posts about related issues with solutions regarding the locals window and watch window etc. All of these solutions require extra steps, time and keystrokes to accomplish what needs to happen by default. Which is showing the value of the particular element when hovering as with other data types. Is there any setting in Visual studio that can make that happen by default? Thanks !

Visual studio debug

DmIdx is an integer with a value of 1269485. Its value is shown simply by hovinging the mouse over the variable.

enter image description here

DmDt is a List<DateTime> when the mouse is hovered over it the value of the list at the particular index should be shown. But instead there is shown the complete list. The index value at this point in the debugging is 1269485 meaning the entry I am interested in is 1.2 million lines down the list. Not helpful.

enter image description here

0 Answers
Related