Suppose I have an Actionscript function like the following (line numbers included for reference):
1 private function foo() : void
2 {
3 var outerVar : Number;
4
5 outerVar = 3;
6
7 doSomething();
8
9 return;
10
11 function doSomething() : void
12 {
13 var innerVar : Number;
14
15 innerVar = outerVar * 2;
16
17 trace(innerVar);
18 }
19 }
If I'm debugging along, and I hit line 15, the debugger will not show me the value of outerVar. I suspect that's because it's not declared in the current scope. However, it is visible in the current scope, because doSomething() is nested within foo().
Is there a setting I can change to make the debugger see this variable? I know I can click up the call stack to see outerVar, but then I can't see innerVar - I often need to be able to see them at the same time. We use a lot of nested functions for asynchronous RPC callbacks, so it's making debugging pretty difficult.