Eden Ridgway's Blog

.Net and Web Development Information

  Home :: Contact :: Syndication  :: Login
  105 Posts :: 1 Stories :: 78 Comments :: 3 Trackbacks

Search

Article Categories

Archives

Post Categories

Development

General

Denis Bauer blogged a way of adding custom summary information about your objects into the watch window. You'll notice that when you look at a collection, instead of seeing System the name in curly braces you see {Count=X}. It turns out that if you edit the C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Packages\Debugger\mcee_cs.dat file you can display the properties of your custom objects too.

Here is an example of an entry in the file:

<System.Collections.Hashtable.bucket>=key=<key> val=<val>

From that it's pretty obvious that the format of the entry is

<Fully Qualified Type Name>=description=<Property to Display>

posted on Wednesday, September 21, 2005 3:16 AM
Comments have been closed on this topic.