Say you have a custom class call it Foo. When you then have an instance of this class, during debugging, if you mouse over this object, you'll either see the fully qualified namespace name of the type, or if you override ToString in this class, you'll see that. Is there any way to customize what the tool tip will say?
views:
102answers:
1
+7
A:
Yeah, check out the MSDN article Enhancing Debugging with the Debugger Display Attributes, which offers:
DebuggerDisplayAttribute
- Calculate a string to displayDebuggerBrowsableAttribute
- Indicate which members should be shownDebuggerTypeProxyAttribute
- Indicate a separate type that provides data to be shown.
Jay Bazuzi
2008-12-15 18:10:28