Acrobat JavaScript Tools
Call Stack List
2
Call Stack List
To the right of the debugger control buttons is the
Call Stack
drop-down list which
displays the currently executing function and its associated state within the current set of
nested calls. An example is shown below in
Figure 2.13.
When the debugger has been used
to suspend execution at a given statement, the call stack displays text indicating the
current function call (stack frame). Each entry shows the current line number and function
name. The most recent stack frame is displayed at the top of the
Call Stack
drop-down list.
To inspect the local variables of a particular frame in the stack, click on that entry. They
appear in the
Inspect
details window immediately below the call stack list, as shown below
in
Figure 2.13.
F
IGURE
2.13
Call stack
You may select any function in the call stack. Doing so selects that stack frame, and its
location is shown in the
Inspect
details window. When
Local Variables
is selected in the
Inspect
drop-down list, the variables specific to that active frame are displayed in the
Inspect
details window.
Acrobat JavaScript Scripting Guide
55