Quit; Step Over; Step Into; Step Out - Adobe 12001196 - Acrobat - Mac Manual

Javascript
Hide thumbs Also See for 12001196 - Acrobat - Mac:
Table of Contents

Advertisement

Quit

The Quit button terminates the debugging session and closes the debugger dialog
window.

Step Over

The Step Over button single-steps through instructions. Clicking Step Over at a function
call executes the entire function in a single step rather than executing the function's
instructions one at a time with each click of the button. Say, for example, the position
indicator (yellow arrow) in the debugger is to the left of a function call, as shown in
Figure
F
IGURE
This location is immediately before the call to callMe(). Assuming that there are no errors
or breakpoints in callMe(), clicking Step Over executes the entire callMe() function,
and advances the position indicator to the next script instruction following the call.
If the statement at the position indicator does not contain a function call, Step Over simply
executes that statement.

Step Into

The Step Into button executes individual statements within a function. Say, for example,
the debugger position indicator is as shown in
takes you to the first statement within the callMe() function.
N
O T E

Step Out

The Step Out button executes the code out of a function call and stops on the instruction
immediately following the call to the function. Using this button, you can quickly finish
executing the current function after determining that a bug is not present. If you are not
inside of a function call and assuming there are no errors, clicking the Step Out button
continues executing code to the end of the script or until a breakpoint is reached.
Acrobat JavaScript Scripting Guide
3.4.
3.4
Position indicator at a function call
Be aware that native functions, for which there is no JavaScript implementation, will
:
not allow you to step into them. This applies to Acrobat native functions as well as
core JavaScript functions.
Acrobat JavaScript Debugger
Figure
3.4. Clicking Step Into at this point
3
Debugger Buttons
39

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Acrobat 6.0

Table of Contents