Solved

Effectively using watch

Posted on 2008-10-31
8
243 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
Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

 
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
 
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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
API v SOA 8 42
Easy filter aspnet 2 35
Coding for the first time 9 69
VB.net Filesystem watcher not working 5 37
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

733 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