Click to Rate and Give Feedback
Collapse All/Expand All Collapse All
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
Visual Studio Debugger
Displaying Custom Data Types

This topic applies to:

Edition

Visual Basic

C#

C++

Web Developer

Express

Topic appliesTopic appliesTopic appliesTopic applies

Standard

Topic applies

Topic applies

Topic applies

Topic applies

Pro and Team

Topic applies

Topic applies

Topic applies

Topic applies

Table legend:

Topic applies

Applies

Topic does not apply

Does not apply

Topic applies but command hidden by default

Command or commands hidden by default.

You can customize the way Visual Studio displays data types in debugger variable windows.

For C#, you can add expansions for custom data using DebuggerTypeProxyAttribute, DebuggerDisplayAttribute, and DebuggerBrowsableAttribute. Visual Basic supports the DebuggerDisplay attribute but not the DebuggerBrowsable attribute.

You can write a visualizer to display any managed data type. For more information, see How to: Write a Visualizer.

For native code, you can add custom data type expansions to the file autoexp.dat, which is located in the Program Files\Microsoft Visual Studio 8\Common7\Packages\Debugger directory. Instructions on how to write autoexp rules are located in the file itself.

Caution noteCaution:

The structure of this file and the syntax of autoexp rules might change from one release of Visual Studio to the next.

Native type views can also be customized by writing an expression evaluator add-in. For more information, see EEAddIn Sample: Debugging Expression Evaluator Add-In.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker