Click here to Skip to main content
Email Password   helpLost your password?

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

You must Sign In to use this message board.
 
 
Per page   
 FirstPrevNext
QuestionMedia Color
strtdusty
6:51 29 Aug '08  
Thanks, this works great. It would be really cool if it would support
System.Windows.Media.Color
as well as the current System.Drawing.Color.
AnswerRe: Media Color
Uwe Keim
7:09 29 Aug '08  
Didn't know that exists at all.

I will take a look at it, thank you!

My personal 24/7 webcam - Always live Wink
Zeta Producer Desktop CMS - Intuitive, completely easy-to-use CMS for Windows.
Zeta Helpdesk - Open Source ticket software for Windows and web.
Zeta Uploader - Easily send large files by e-mail. Windows and web client.


GeneralRe: Media Color
strtdusty
7:24 29 Aug '08  
I started putting it into your code (had to change to 3.5 framework). However, I think the class (Color) needs to be marked as serializable and isn't. It may not be possible.
GeneralAs always, ausgezeichnet!
Marc Merritt
15:13 8 Jan '08  
Cheers from Pennsylvania, USA. Smile
GeneralRe: As always, ausgezeichnet!
Uwe Keim
8:56 27 Jan '08  
Thanks, Marc! Seems that I have missed your comment!

My personal 24/7 webcam - Always live Wink
Zeta Producer Desktop CMS - Intuitive, completely easy-to-use CMS for Windows.
Zeta Helpdesk - Open Source ticket software for Windows and web.
Zeta Uploader - Easily send large files by e-mail. Windows and web client.


GeneralRe: As always, ausgezeichnet!
Marc Merritt
9:20 27 Jan '08  
I was starting to get offended - kidding Wink
JokeRe: As always, ausgezeichnet!
Uwe Keim
9:21 27 Jan '08  
Yes, I guessed that!

My personal 24/7 webcam - Always live Wink
Zeta Producer Desktop CMS - Intuitive, completely easy-to-use CMS for Windows.
Zeta Helpdesk - Open Source ticket software for Windows and web.
Zeta Uploader - Easily send large files by e-mail. Windows and web client.


GeneralThanks!!!
PawJershauge
12:34 8 Jan '08  
Just what i needed... you rule Shucks Shucks
GeneralRe: Thanks!!!
Uwe Keim
8:56 27 Jan '08  
Glad you like it. Thank you!

My personal 24/7 webcam - Always live Wink
Zeta Producer Desktop CMS - Intuitive, completely easy-to-use CMS for Windows.
Zeta Helpdesk - Open Source ticket software for Windows and web.
Zeta Uploader - Easily send large files by e-mail. Windows and web client.


GeneralNicely Done
Tomer Noy
4:22 31 Dec '07  
Glad to see that my article inspired useful contributions Smile
GeneralRe: Nicely Done
Uwe Keim
11:39 1 Jan '08  
Surely they did and do!

Thanks for your feedback and your article. Looking forward for more article contributions from you.

My personal 24/7 webcam - Always live Wink
Zeta Producer Desktop CMS - Intuitive, completely easy-to-use CMS for Windows.
Zeta Helpdesk - Open Source ticket software for Windows and web.
Zeta Uploader - Easily send large files by e-mail. Windows and web client.


GeneralSmart idea
Norbert Bietsch
11:34 28 Dec '07  
... the smaller the better Big Grin
Beste Grüße, Norbert Bietsch
GeneralRe: Smart idea
Uwe Keim
0:08 29 Dec '07  
Thank you!

I hope you talk about programming-related things only Wink

My personal 24/7 webcam - Always live Wink
Zeta Producer Desktop CMS - Intuitive, completely easy-to-use CMS for Windows.
Zeta Helpdesk - Open Source ticket software for Windows and web.
Zeta Uploader - Easily send large files by e-mail. Windows and web client.


GeneralSweet!
Ravi Bhavnani
16:55 26 Dec '07  
Got my 5. Cool

But why aren't you up coding right now (approx 3:00am your time)? I know I'll be. Smile

/ravi

This is your brain on Celcius
Home | Music | Articles | Freeware
ravib(at)ravib(dot)com

GeneralRe: Sweet!
Uwe Keim
20:39 26 Dec '07  
Thank you, Ravi!

Sorry, it must be a temporary issue (called "sleep"), but I am working on that one Wink.

My personal 24/7 webcam - Always live Wink
Zeta Producer Desktop CMS - Intuitive, completely easy-to-use CMS for Windows.
Zeta Helpdesk - Open Source ticket software for Windows and web.
Zeta Uploader - Easily send large files by e-mail. Windows and web client.


GeneralVery nice
Daniel Vaughan
16:10 26 Dec '07  
Uwe, this is very nice, and extremely useful. I have wanted something like this for a long time. Thanks.


GeneralRe: Very nice
Uwe Keim
20:38 26 Dec '07  
Thank you, Daniel!

Glad to hear you like it and that even simple ideas are worth a high vote.

My personal 24/7 webcam - Always live Wink
Zeta Producer Desktop CMS - Intuitive, completely easy-to-use CMS for Windows.
Zeta Helpdesk - Open Source ticket software for Windows and web.
Zeta Uploader - Easily send large files by e-mail. Windows and web client.



Last Updated 26 Dec 2007 | Advertise | Privacy | Terms of Use | Copyright © CodeProject, 1999-2010