Solved

Effectively using watch

Posted on 2008-10-31
8
237 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
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 
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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
Concerto provides fully managed cloud services and the expertise to provide an easy and reliable route to the cloud. Our best-in-class solutions help you address the toughest IT challenges, find new efficiencies and deliver the best application expe…

932 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

11 Experts available now in Live!

Get 1:1 Help Now