Note: You can't "back off from the error" in a parent subroutine.
E.g. lets say you had something like this:
1 performaction() {
2 ... blah blah ..
3 x = 5;
4 y = get_data();
5 ... blah blah ...
6 }
7
8 get_data {
9 ... blah b.ah....
10 return idata[421312];
11 }
If an exception occurred on line 10, you can examine various variables in get_data() like normal, you can also, at your discretion, set the current line to line 8 or 9. That's normal.
You can also use the call stack to back out to line 4, and then you can look at the various variables and their states in the watch window for the performaction() function.
You CANNOT, however, "set the current line" to line 3. Not allowed to do that because you're in a parent function, and doing that would involve unwinding the stack all the way back to the point where performactoin() was called. That's not allowed.
Main Topics
Browse All Topics





by: Frosty555Posted on 2009-07-23 at 10:27:14ID: 24927711
Look at the call stack, you can see the various calls and how they nested.
The call stack window should be openable by clicking the appropriate icon in the debug toolbar. The icon for it should be near the icons for the watch window / locals / etc.