in

Platinum Bay

Peace, Love, and Visual Studio ALM

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 an independent consultant, INETA speaker, and Microsoft MVP for Visual Studio ALM. He has been working in technology for over ten years focusing on custom application development and Application Lifecycle Management. Steve is also Microsoft and IBM certified and a community fanatic having led sessions at nearly 100 events across North America. When he's not developing software solutions or engaging with the community about software technology, Steve is a closet singer and songwriter and plays the guitar and keys. Occasionally, Steve even gets to sleep. Occasionally.
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.