473,399 Members | 3,302 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Debugger visualizer

Udi
Hi,
I have a simple example of a color visualizer and it works fine.
I've tried to add another (new) color visualizer
(an exact copy of the example) in a different (new) solution,
but for some reason I can't see my
new visualizer while debugging. (see code below)
Isn't it possible to add more than one visualizer
to the same type (Color)?
Why do I see only the visualizer from the example
(even when debugging the new solution), and can't
see my own visualizer which is part of that solution?
Thanks,
Udi.
///////////////////////////////////////////////////////////////////////////*///////////////////////////////////

MyColorVizualizer.cs
~~~~~~~~~~~~~~~~
public class MyColorVizualizer : DialogDebuggerVisualizer
{
protected override void Show(IDialogVisualizerService
windowService, IVisualizerObjectProvider objectProvider)
{
Debug.Assert(windowService != null);
Debug.Assert(objectProvider != null);
Color data = (Color)objectProvider.GetObject();
Debug.Assert(data != null);
using (MyColorVizualizerDlg displayForm =
new MyColorVizualizerDlg(data))
{
displayForm.Text += " " + data.ToString();
windowService.ShowDialog(displayForm);
}
}

}
//////////////////////////////////////////////////////////
MyColorVizualizerDlg.cs
~~~~~~~~~~~~~~~~~~

public partial class MyColorVizualizerDlg : Form
{
public MyColorVizualizerDlg(Color color)
{
InitializeComponent();
BackColor = color;
}
}
////////////////////////////////////////////////////////////////////
AssemblyInfo.cs
~~~~~~~~~~~~
[assembly: DebuggerVisualizer(typeof(MyColorVizualizer), Description =
"Udi's Color Visualizer", Target = typeof(Color))]
///////////////////////////////////////////////////////////////////

Jan 29 '06 #1
1 2065
Hi Udi,

Isn't it possible to add more than one visualizer
to the same type (Color)?

Yes,
Why do I see only the visualizer from the example
(even when debugging the new solution), and can't
see my own visualizer which is part of that solution?

Did you copy your assembly to a suitable folder for visualizers?

--
Miha Markic [MVP C#]
RightHand .NET consulting & development www.rthand.com
Blog: http://cs.rthand.com/blogs/blog_with_righthand/
Jan 30 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Ziaran _ | last post by:
I have written a new debugger. I think people will find it useful. Where can I post it for people to download? Thanks, Nir _________________________________________________________________...
1
by: Rhino | last post by:
Is there any way to install the IBM Distributed Debugger V9.2 on Windows XP without first uninstalling DB2? I installed the IBM Distributed Debugger V9.2 on my Windows XP box in the hopes of...
0
by: stevenkblack | last post by:
I have a database we just migrated to 8.1.6 on Windows and it is acting very strange. I am alarmed that when I first start up the database and I open the memory Visualizer the LockManager Heap...
0
by: Udi | last post by:
Hi, I have a simple example of a color visualizer and it works fine. I've tried to add another (new) color visualizer (an exact copy of the example) in a different (new) solution, but for some...
2
by: | last post by:
Apologies for what's probably a pretty dumb question, but: Can Viewstate variables be viewed using the VS.NET debugger? Where does this information appear? thanks, -KF
2
by: Joanna Carter [TeamB] | last post by:
Hi folks If I write a KeyDown handler and check the KeyCode for Keys.Insert, the debugger shows the value as Keys.LButton | Keys.MButton | Keys Back | Keys.Space. This is perfectly...
0
by: Anders K. Olsen | last post by:
Hello group Do any of you know where I can find a Debugger Visualizer for the ASP.Net cache? I have found several links to a visualizer by Brett Johnson (e.g. from this article:...
1
by: Clive Dixon | last post by:
I'm writing my first debugger visualiser, and I'm having to provide my own serialisation as the object I'm examining is not serializable. I also want to be able to modify the object via my...
2
by: Clive Dixon | last post by:
I'm becoming increasingly frustrated with debugger visualizers (VS 2005). It seems virtually impossible to write one which doesn't cause a timeout when trying to view the data. I'm guessing that...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.