Override the ToString method.
--
Bryan Phillips
MCSD, MCDBA, MCSE
Blog: http://bphillips76.spaces.live.com
> When I am debugging and have a variable that is a button, the locals/
> autos windows in Visual Studio display the value of the button
> variable as {Text="button1"}. Does anyone know where this
> functionality comes from, and how would I add it to my classes?
>
> Thanks.
jack@unraunet.com - 13 Mar 2007 16:31 GMT
On Mar 12, 7:42 pm, "Bryan Phillips"
<bphill...@nospam.spamcop.net.spammenot> wrote:
> Override the ToString method.
>
[quoted text clipped - 14 lines]
>
> - Show quoted text -
The return value of the ToString() method is not what is displayed in
the Value column.
jack@unraunet.com - 13 Mar 2007 19:00 GMT
I figured it out:
Modify the following file:
<vsinstalldir>Common7\Packages\Debugger\mcee_cs.dat