Solved

Effectively using watch

Posted on 2008-10-31
8
240 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
MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

 
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

840 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