Link to home
Start Free TrialLog in
Avatar of andrewjb
andrewjbFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Debug tooltip expression evaluation..

Can you change the text that the debugger tooltip and watch window generate?
By default, on anything other than a simple type, they seem to show the class/struct name. It'd be nicer if they could display something better formatted. I'd hoped they might use ToString() but they don't.. Is there an attribute or interface or something I can implement to get them to prettify output...?

Avatar of andrewjb
andrewjb
Flag of United Kingdom of Great Britain and Northern Ireland image

ASKER

Example: I've a simple struct/class which contains an int value, and some methods to fiddle with it.
In debug mode, when I put the mouse over a variable, it displays the hint of '{MyNamspace.MyClass}' whereas a hint showing me the value of the int would be a lot more friendly..
ASKER CERTIFIED SOLUTION
Avatar of SteveGTR
SteveGTR
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Cool. I'll have a look tomorrow.

You'd have thought it would be easier to attribute tag some function, or provide a, say, IDebugInfo interface you could implement in-class...
I agree. The help is sparse and the file is embedded way deep in the products directory tree. I have to do a search to remember how to change this each time I have a need.