all groups > visual studio .net debugging > january 2004 >
You're in the

visual studio .net debugging

group:

Watch not sufficient


Watch not sufficient Jesper
1/19/2004 4:56:07 AM
visual studio .net debugging: Hi

I would like to keep an eye on some fields in an object. However, this object is adressed accordingly to the scope of execution if I monitor it in the Watch and hence I would need to write the path to the object in the watch as I jump from scope to scope. Is it possible to watch the fields of an object no matter where in the program you are?

Re: Watch not sufficient Habib Heydarian [MSFT]
1/23/2004 4:26:58 AM
The short answer is no. As soon as a variable goes out of scope, the
debugger is no longer able to display its value. Of course, you can always
use the Call Stack window to navigate to the frame where the variable is in
scope.

HabibH.

[quoted text, click to view]
object is adressed accordingly to the scope of execution if I monitor it in
the Watch and hence I would need to write the path to the object in the
watch as I jump from scope to scope. Is it possible to watch the fields of
an object no matter where in the program you are?.
[quoted text, click to view]

RE: Watch not sufficient apennell NO[at]SPAM online.microsoft.com
2/2/2004 10:49:26 PM
In which language?

If debugging C++ you can use the "advanced breakpoint syntax" (misnamed) to
specify a context on the Watch window item. Of course this only works if
the function whose scope you want to see is somewhere on the stack.

If debugging other langauges then no, sorry.
--------------------
[quoted text, click to view]

I would like to keep an eye on some fields in an object. However, this
object is adressed accordingly to the scope of execution if I monitor it in
the Watch and hence I would need to write the path to the object in the
watch as I jump from scope to scope. Is it possible to watch the fields of
an object no matter where in the program you are?.

Best regards Jesper.
[quoted text, click to view]


--

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

Note: For the benefit of the community-at-large, all responses to this
message are best directed to the newsgroup/thread from which they
originated.
AddThis Social Bookmark Button