!Dan Vallejo's WebLog!

Visual Studio .NET Developer

Creating Datatips for Debugging Your Classes

How do you display the contents of your custom classes. When you hover over a variable in the debugger, it shows you the contents of the variable. How do you do that for your own classes?

In the directory C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Packages\Debugger, there is a file named mcee_cs.dat that contains the various definitions for how they should display in the debugger.

Add the following line to the mcee_cs.dat file:

<yourNameSpace.yourClassName>=V1=<memberVar1> V2=<memberVar2>

You'll first need to shut down Visual Studio and then when you debug the program you can hover over the custom classes and see their contents.

Published Saturday, May 22, 2004 4:29 PM by DanVallejo
Filed under:

Comments

No Comments
Anonymous comments are disabled

© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Microsoft
Page view tracker