Solved

Debugger use in Visual Studio 2008

Posted on 2012-03-30
1
231 Views
Last Modified: 2012-06-27
Maybe this is a stupid question.  But I have to ask it.

When I step thru the code in the debugger, I am used to seeing the 'local' variables in the class / function / procedure that is currently being executed.

Is there any way to see if an object that was created by an earlier method is still existing or has been released. Obviously it is not local to the procedure being executed so it does not pop up in my local window.
0
Comment
Question by:shahjagat
1 Comment
 
LVL 74

Accepted Solution

by:
käµfm³d   👽 earned 150 total points
ID: 37789287
I might not be fully grasping the question, but you can view calls which are currently higher up in the stack. If you display the "Call Stack" window (Debug->Windows->Call Stack), you can see the series of function calls which have been called (and which are still in [some kind of] scope) since the program started. You can double-click on any line which is not greyed out and see the state of the various variables as they existed when that function was in current scope (ref variables may show differently if a lower caller has modified the values).
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
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…

757 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

21 Experts available now in Live!

Get 1:1 Help Now