Acrobat JavaScript Tools
Using the Acrobat JavaScript Debugger
2
T
ABLE
2.3
JavaScript debugger options
Option
Enable Javascript
debugger after
Acrobat is restarted
Store breakpoints
in PDF file
Meaning
To enable the debugger, check this option, which makes all
debugger features available the next time Acrobat is launched.
This option enables you to store breakpoints so they are available
the next time you start Acrobat or open the PDF file. To remove
the breakpoints, do the following:
●
Turn this option off.
●
Select
Advanced > JavaScript > Document JavaScripts
and
delete the
ACRO_Breakpoints
script.
●
Save the file.
This option provides three choices for actions when an exception
is thrown:
●
Ignore:
ignores the exception.
●
Trace:
displays a stack trace.
●
Break:
stops execution and displays a message window that
gives you the option to start the debugger at the line where
the exception occurred.
This option allows you to enter JavaScript commands in the
console window. If this option is not checked and you click in the
console window, the following dialog box appears:
The interactive console is not enabled. Would you like to
enable it now?
Click
Yes
to enable this option from within the debugger. In
Preferences
you will now see this option checked.
This option opens the console window in the debugger dialog
box. Regardless of whether the debugger is enabled, this option
causes the debugger dialog box to open when an error occurs
and displays the error message to the console window.
When an exception
is thrown
Enable interactive
console
Show console on
errors and
messages
Acrobat JavaScript Scripting Guide
47