andrewjb
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...?
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...?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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...
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.
ASKER
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..