Click here to Skip to main content
6,305,776 members and growing! (15,336 online)
Email Password   helpLost your password?
General Programming » Macros and Add-ins » Tools     Intermediate License: The Code Project Open License (CPOL)

Zeta Color Visualizer

By Uwe Keim

A Visual Studio .NET 2008 Debugger Visualizer for the Color structure
C# (C# 1.0, C# 2.0, C# 3.0)VS2008, Dev
Posted:26 Dec 2007
Views:13,846
Bookmarked:22 times
Announcements
Loading...
 
Search    
Advanced Search
printPrint   Broken Article?Report       add Share
  Discuss Discuss   Recommend Article Email
19 votes for this article.
Popularity: 5.96 Rating: 4.66 out of 5

1

2
2 votes, 10.5%
3
1 vote, 5.3%
4
16 votes, 84.2%
5

Introduction

This short article presents you a tiny Debugger Visualizer for Visual Studio .NET 2008 to visualize Color structure data types.

A Debugger Visualizer is being used while you debug your code. Whenever you inspect a variable, Debugger Visualizers help you to display the current value of a variable in a more useful way.

There are several built-in Debugger Visualizers, e.g. for strings, for XML strings, for HTML strings or DataSets. In addition you can extend the Debugger Visualizers by providing your own. Several CodeProject members already did.

Background

Inspired by this article that shows a Debugger Visualizer for displaying Image class data types, I created this one here. No rocket science but probably quite handy, at least to me.

Installing the Debugger Visualizer

To install the Debugger Visualizer on your system, simply drop the DLL directly in the Visualizers Visual Studio .NET 2008 folder of your user account.

In my installation on Windows Vista, this complete folder path is named C:\Users\ukeim\Documents\Visual Studio 2008\Visualizers. Yours may differ.

Using the Debugger Visualizer

After this "installation", simply debug as normal, setting your breakpoints. Whenever you are about to inspect a variable of type Color, you see the magnification glass. Click it and you see the Debugger Visualizer displaying the value.

Please note that I explicitly compiled the DLL against Visual Studio .NET 2008 (i.e. it probably will be unusable for Visual Studio .NET 2005 without rebuilding).

Building the DLL on your Own

In the download ZIP archive for this article, I included both the DLL and the source code (of course). The source contains the actual Debugger Visualizer, as well as some very tiny console applications to test it.

(Interestingly enough, you do not need to restart Visual Studio .NET in order to have changes available in the debugger. It appears immediately - nice one!)

I set up my build environment so that the output of the build (i.e. the Debugger Visualizer DLL) is being placed directly in the Visualizers folder, thus giving me maximum comfort when developing the DLL itself.

If you have this folder structure, too:

...then you can use the solution directly, since the build output points to the Visualizers folder with a relative folder path:

Enjoy using and enhancing. I'm looking forward for your feedback!

History

  • 2007-12-26: Created first version

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

Uwe Keim


Member
Uwe does programming since 1989 with experiences in Assembler, C++, MFC and lots of web- and database stuff and now uses ASP.NET and C# extensively, too. He is also teached programming to students at the local university.

In his free time, he does climbing, running and mountain biking. You can watch him most of the day (and probably night) programming.

Some cool, free software from us:

-----

Zeta Test

Zeta Test is an integrated test management environment that enables you to perform black-box tests, white-box tests, regression tests or change management tests of software applications.

Zeta Test helps you to plan, perform, log, monitor and document the tests, and then to evaluate the test results.

Create and manage your test cases and test plans with Zeta Test. Test your software with test scripts that you created with Zeta Test.

Directly download Zeta Test for free!

-----

Zeta Producer Desktop CMS

Intuitive, completely easy-to-use CMS for Windows. Both Freeware version and full version available.

Try out by yourself now! (direct download)

-----

Zeta Uploader

Easily send large files by e-mail. Windows and web client available.

-----
Occupation: Software Developer
Company: zeta software GmbH
Location: Germany Germany

Other popular Macros and Add-ins articles:

Article Top
You must Sign In to use this message board.
FAQ FAQ 
 
Layout  Per page   
 Msgs 1 to 17 of 17 (Total in Forum: 17) (Refresh)FirstPrevNext
QuestionMedia Color Pinmemberstrtdusty6:51 29 Aug '08  
AnswerRe: Media Color PinsitebuilderUwe Keim7:09 29 Aug '08  
GeneralRe: Media Color Pinmemberstrtdusty7:24 29 Aug '08  
GeneralAs always, ausgezeichnet! PinmemberMarc Merritt15:13 8 Jan '08  
GeneralRe: As always, ausgezeichnet! PinsitebuilderUwe Keim8:56 27 Jan '08  
GeneralRe: As always, ausgezeichnet! PinmemberMarc Merritt9:20 27 Jan '08  
JokeRe: As always, ausgezeichnet! PinsitebuilderUwe Keim9:21 27 Jan '08  
GeneralThanks!!! PinmemberPawJershauge12:34 8 Jan '08  
GeneralRe: Thanks!!! PinsitebuilderUwe Keim8:56 27 Jan '08  
GeneralNicely Done PinmemberTomer Noy4:22 31 Dec '07  
GeneralRe: Nicely Done PinsitebuilderUwe Keim11:39 1 Jan '08  
GeneralSmart idea PinmemberNorbert Bietsch11:34 28 Dec '07  
GeneralRe: Smart idea PinsitebuilderUwe Keim0:08 29 Dec '07  
GeneralSweet! PinmemberRavi Bhavnani16:55 26 Dec '07  
GeneralRe: Sweet! PinsitebuilderUwe Keim20:39 26 Dec '07  
GeneralVery nice PinmemberDaniel Vaughan16:10 26 Dec '07  
GeneralRe: Very nice PinsitebuilderUwe Keim20:38 26 Dec '07  

General General    News News    Question Question    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

PermaLink | Privacy | Terms of Use
Last Updated: 26 Dec 2007
Editor: Deeksha Shenoy
Copyright 2007 by Uwe Keim
Everything else Copyright © CodeProject, 1999-2009
Web19 | Advertise on the Code Project