Suppose I have an Actionscript function like the following (line numbers included for reference):
1 private function foo() : void
3 var outerVar : Number;
5 outerVar = 3;
11 function doSomething() : void
13 var innerVar : Number;
15 innerVar = outerVar * 2;
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.