in

Platinum Bay

Peace, Love, Team System, and Community

This Blog

Syndication


.NETicated

Debugger Visualizers

Anyone who writes code knows that a fair amount of time is spent debugging it. Writing more than 10 lines of code invariable means there is going to be a bug or two. Sometimes, getting to the root of the problem means delving deep into the objects your code instantiates. Visual Studio provides a mechanism to explore the instantiated objects in you code, via debugger visualizers.

Scott Mitchell has a great article outlining debugger visualizers if you would like to learn more.

I have created a couple project templates to help you get started building debugger visualizers, one for C# and one for VB. Also in the Downloads section is a sample project to create a StringBuilder visualizer.

StringBuilder Visualizer Sample Project

Visual Basic Debugger Visualizer Project Template

Visual C# Debugger Visualizer Project Template

To use the project templates, you will need to make a couple of changes. First, in the AssemblyInfo file, change the Target in the DebuggerVisualizer attribute to the type you want to visualize. Next, build the UI in the VisualizerDialog page, and update the Class1 file to reflect the type you are visualizing.

Enjoy!

Published Oct 20 2007, 09:34 AM by Steve
Filed under: ,

Comments

No Comments

Leave a Comment

(required )  
(optional )
(required )  
Add

About Steve

Steve Andrews is a Team System MVP and INETA Speaker, and has been working as a developer for more than 9 years. During this time, he has designed and developed applications in such widely varying areas as trust accounting, medical information management, supply chain management, and retail systems. Steve is also an MCP, ICSOO, Speaker Liaison for the Philly .NET User Group, and community fanatic.
Powered by Community Server (Commercial Edition), by Telligent Systems
© Platinum Bay | Some Rights Reserved Creative Commons License

Disclaimer: The information in this weblog is provided "AS IS" with no warranties, and confers no rights. This weblog does not represent the thoughts, intentions, plans or strategies of my employer. It is solely my opinion. Feel free to challenge me, disagree with me, or tell me I'm completely nuts in the comments section of each blog entry, but I reserve the right to delete any comment for any reason whatsoever (abusive, profane, rude, or annonymous comments) - so keep it polite, please.