Visualizers

If you work with complex types such as datasets and long XML files, you know that these are unwieldy to view in the debugger watch window. That's why Visual Studio 2005 has introduced visualizers, which are custom display forms associated with a particular variable or object types. For example, an HTML visualizer interprets an HTML string and displays the result as it would appear in a browser window. Some visualizers allow you to edit as well as view the data. Visualizers are represented in the debugger by a magnifying glass icon. When you see the magnifying glass in a DataTip, in a debugger variables window or in the QuickWatch dialog box, you can click on the magnifying glass to select a visualizer appropriate to the data type of the corresponding object.

The Visual Studio 2005 debugger comes with four standard visualizers for text, HTML, XML, and datasets. The dataset visualizer works for DataSet, DataView, and DataTable objects. Additional visualizers may be available for download from Microsoft in the future. In addition, visualizers are extensible so you can write your own visualizers and install them into the Visual Studio debugger.

Even a simple XML file is much easier to understand using a visualizer