You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Debugger display of dictionary types and DebuggerDisplayAttribute.Name #88736
A place Name is useful is collection items. It can be used to display a custom name instead of an index in a debugger window.
Before:
After:
This seems like an improvement to me. It's easier to see what the keys and values are.
I was wondering why IDictionaryDebugView and other dictionary type proxies don't use this feature. Right now the key and value are squashed together in the debugger, and a meaningless index is displayed as the name.
Activity
ghost added
untriagedNew issue has not been triaged by the area owner
Don't really have any historical context on this specific decision.
I will say that in general the rules of DebuggerDisplay and the power when combined with DebuggerTypeProxy and DebuggerBrowsable wasn't fully appreciated by everyone when it first came out. That combined with various bugs in the EE, perf issues evaluating so many new expressions, and actual bugs how developers structured meant they weren't as utilized as they could have been. It wasn't until probably VS 2010 until I think the entire system was in a fully formed state.
It's quite possible the original author didn't realize these type of tricks were possible, or tried and gave up due to the mentioned issues and no one has revisited it since then.
Activity
JamesNK commentedon Jul 13, 2023
@jaredpar Curious if you have any insight here or historical context.
jaredpar commentedon Jul 13, 2023
Don't really have any historical context on this specific decision.
I will say that in general the rules of
DebuggerDisplayand the power when combined withDebuggerTypeProxyandDebuggerBrowsablewasn't fully appreciated by everyone when it first came out. That combined with various bugs in the EE, perf issues evaluating so many new expressions, and actual bugs how developers structured meant they weren't as utilized as they could have been. It wasn't until probably VS 2010 until I think the entire system was in a fully formed state.It's quite possible the original author didn't realize these type of tricks were possible, or tried and gave up due to the mentioned issues and no one has revisited it since then.
Improves and unifies debug views of dictionaries.
Improve and unify debug views of dictionaries. (#92534)