2
Acrobat JavaScript Tools
Using the Acrobat JavaScript Debugger
As you learned earlier when opening the Acrobat JavaScript Console, which is integrated
with the debugger dialog box, the debugger may be activated in Acrobat Professional by
selecting
Advanced > JavaScript > Debugger.
In addition, the debugger automatically
opens if a running script throws an exception or encounters a previously set breakpoint.
N
OTE
:
The Acrobat JavaScript Debugger cannot be used to analyze JavaScript stored in
HTML pages viewed by Web browsers such as NetScape or Internet Explorer, or any
other kind of scripting languages.
In order to make the debugger available for use, you will need to enable both JavaScript
and the debugger. As you did earlier, use the
Edit > Preferences
dialog to control the
behavior of the Acrobat JavaScript development environment. Enabling JavaScript and the
JavaScript editor are described in
Enabling JavaScript.
To enable the debugger, select
JavaScript from the list on the left in the
Preferences
dialog and make sure the
Enable
JavaScript debugger...
option is checked. Note that you must restart Acrobat for this
option to take effect.
The debugger options are located in the
JavaScript Debugger
section of the
Preferences
dialog, as shown above in
Figure 2.1,
and are explained below in
Table 2.3.
46
Acrobat JavaScript Scripting Guide