2
Acrobat JavaScript Tools
Debugger Scripts Window
Step Out
The
Step Out
button executes the remaining code within the current function call and
stops at the instruction immediately following the call. This button provides a convenient
means of eliminating cumbersome, stepwise execution of functions that do not contain
bugs. If you are not inside a function call and there are no errors, the
Step Out
button
continues executing code to the end of the current script or until a breakpoint is
encountered.
Debugger Scripts Window
All scripts associated with a PDF file are available in the debugger dialog. The debugger
displays these in the
Scripts
window (see
Figure 2.12
below for an example).
F
IGURE
2.12
Scripts window
Accessing Scripts in the Scripts Window
To display the content a script, click the triangle to its left in the
Scripts
window. Each
triangle opens the next level in the containment hierarchy. A script icon indicates the
lowest level, which means that the code for the given function is available. As shown above
in
Figure 2.12,
a function has been defined for a mouse-up action on a button named
Button1
. Click on the script icon to display its code.
Acrobat JavaScripts can be stored in several places, which may be either inside or outside
PDF files. The following sections describe their possible locations.
52
Acrobat JavaScript Scripting Guide