473,320 Members | 2,202 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,320 software developers and data experts.

Attribute to mark variable as tooltip during debug?

I was wondering... Are there attributes you can use to mark
accessors/variables that will identify them as to be shown when hovering over
an instance of the containing object during debugging? As in, if you have a
class with lots of different instance variables, but you are interested in
seeing the value of variable "foo" when you hover the mouse over an object of
the class during debugging, similar to seeing the current value when hovering
over an int var? For example, in class MyObject, I would do something
similar to:

class MyObject{
int bar;
[SeeMeWhenHoveringDuringDebugChaChaCha] // <-- something like this
static string status = "Your program is going to crash, cha cha cha!";
bool fubar = true;

public MyObject(){
...

Is it possible? My watch list is getting a scosh too long for comfort...

Nov 17 '05 #1
1 1699
William,

In .NET 2.0 and VS.NET 2005 and above, you can attach the
DebuggerDisplayAttribute to your class, and specify the format of what is
seen for that variable when you hover over it.

In .NET 1.1 and VS.NET 2003 and before, you have to modify the
mcee_mc.dat file in the <program install
directory>\Common7\Packages\Debugger directory. There is documentation in
the file detailing how to set those values.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"William Sullivan" <Wi*************@discussions.microsoft.com> wrote in
message news:D4**********************************@microsof t.com...
I was wondering... Are there attributes you can use to mark
accessors/variables that will identify them as to be shown when hovering
over
an instance of the containing object during debugging? As in, if you have
a
class with lots of different instance variables, but you are interested in
seeing the value of variable "foo" when you hover the mouse over an object
of
the class during debugging, similar to seeing the current value when
hovering
over an int var? For example, in class MyObject, I would do something
similar to:

class MyObject{
int bar;
[SeeMeWhenHoveringDuringDebugChaChaCha] // <-- something like this
static string status = "Your program is going to crash, cha cha cha!";
bool fubar = true;

public MyObject(){
...

Is it possible? My watch list is getting a scosh too long for comfort...

Nov 17 '05 #2

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

Similar topics

14
by: Del Ferguson | last post by:
Group, New to this list. I just found out that FireFox does not display the img alt attribute the same way IE does. I use both browsers to verify that my pages are readable. Dumb me for not...
4
by: DU | last post by:
I am looking for opinions on the issue of length of title attribute. First of all, the current HTML 4.01 spec is rather vague on this issue... at least, it isn't explicit nor normative. The HTML...
33
by: bissatch | last post by:
Hi, I fully understand the purpose of an alt attribute within a <img> tag but why would you use a title or summary attribute within, for example, a <p> tag. I have read books recommending that I...
0
by: walve_wei | last post by:
<1>use the D3D control panel, enable the debug DLL and maximum validation,for D3D control panel ,you need to install the directx sdk. <2>Start up the debug monitor (<MSVC install...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.