Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to look at Bitmap objects in Visual Studio debugger?

I am building a C# app that creates many bitmaps (System.Drawing.Image). Having the bitmaps seen in the debugger as pictures, would be of enormous help. The debugger has native support for XML files. Is there a way to see the pictures?

like image 936
ROWLEX Admin Avatar asked Apr 20 '12 13:04

ROWLEX Admin


People also ask

What is Bitmap in Visual Studio?

A Bitmap is an object used to work with images defined by pixel data.

How do I show variables in debug in Visual Studio?

Hover over a variable to see its value. When stopped in the debugger hover the mouse cursor over the variable you want to look at. The DataTip will appear showing you the value of that variable. If the variable is an object, you can expand the object by clicking on the arrow to see the elements of that object.

How do I debug COM objects in Visual Studio?

In visual studio if you open tools >> Options and then debugging >> General make sure the option "Use managed compatibility mode" it checked on. This should show com objects as their proper types in the debugger.


1 Answers

There is no debugger visualizer by default for Bitmap, so you might want to give this one a try: http://imagedebugvisualizer.codeplex.com/

like image 192
Ivan Zlatev Avatar answered Sep 17 '22 14:09

Ivan Zlatev