Dictionaries look ugly in the CLR Debugger (DbgCLR)

Dictionary values ​​look ugly in the CLR Debugger. Is there any way to make them more friendly? I want to see only keys and values ​​instead of all these recursively nested properties.

screenshot

UPD: The best compromise so far found:

new ArrayList(myDictionary).ToArray()

enter image description here

+3
source share
3 answers

Answering my own question.

After installing Visual C # 2005 Express, things got a lot better. Now even custom visualizers work in the CLR Debugger (thanks @dkson for mentioning them)!

screenshot

0
source

, , , ToString() , , , , Student , , ? , , ToString() , , , sire , .

+1

You can use the DebuggerTypeProxy attribute, which allows you to customize the debug view of your type.

+1
source

Source: https://habr.com/ru/post/1791997/


All Articles