Solved

Effectively using watch

Posted on 2008-10-31
8
234 Views
Last Modified: 2013-12-17
Hi,

I'm using Visual Studio 2005. Is it possible to use more watch windows then 4 when debugging? Let's say I'm debugging 20 methods and in every of them are many variables I want to watch. How to do it effectively? It seems that watch Windows in Visual Studio aren't sufficient.

thanks
0
Comment
Question by:xRalf
  • 5
  • 3
8 Comments
 
LVL 13

Expert Comment

by:kaylanreilor
ID: 22848947
I don't think you can but there is also the auto window which is reporting the value of the variables currently used by the code when debugging step-by-step and also when you hover the mouse over the variable you will have the values... but I guess you already knew that.
0
 
LVL 6

Author Comment

by:xRalf
ID: 22849299
The auto window is useful and hovering mouse over variable is also very useful, but what if the variables aren't easy? What if you have structures and classes and want to watch only some members of those classes, or you don't want to watch only the variable, but the variable in some complex expression?
Watch windows are good for this purpose, but there are only 4.
0
 
LVL 13

Expert Comment

by:kaylanreilor
ID: 22850383
With VS2005 you already have the feature where you can expand a structure by hovering over it into the code.
Else you right-click the variable and click "QuickWatch...".
0
 
LVL 6

Author Comment

by:xRalf
ID: 22850441
Yeah,

I know about expanding the structure but it's really uncomfortable
and I know about QuickWatch, but it's not what I'm looking for.
0
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
LVL 13

Expert Comment

by:kaylanreilor
ID: 22851257
OK, but if it doesn't exist what are you waiting for ? Your question is "Is it possible to use more watch windows then 4 when debugging?", the answer is "No, it isn't", so now I suggest to look for an add-in sold by another company.
0
 
LVL 13

Expert Comment

by:kaylanreilor
ID: 22851282
For example here : http://msdn.microsoft.com/en-us/magazine/cc301414.aspx
It's written "you have up to four Watch windows in which to place the variables you want to monitor". That mean 4 and no more.

So let's look for an add-in if it exist.
0
 
LVL 6

Author Comment

by:xRalf
ID: 22865909
There aren't more watch windows then for, so I'm looking for some effective way, how to handle this situation.
0
 
LVL 13

Accepted Solution

by:
kaylanreilor earned 250 total points
ID: 22873938
Why don't you add traces in a file reporting the values of your variables with a timestamp.
Or you can spent a lot of time to code a whole app which will read the info into a pipe before displaying it on a GUI. The code feeding the pipe and, in the "observer" app, the code reading the pipe could run in separated thread !... Seriously, I'm not sure that you absolutly need to have clue at the same time on all the variables of your 20 functions into DIFFERENT watch windows. You really can deal the 4 existing and the variable of several different methods into the same watch window.
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
.Net application crashing 6 21
C# Application Local DB Connection String 23 61
fomat Json objects 6 18
Getfiles in vb.net 28 24
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now