Adobe 12001196 Scripting Guide - Page 28

Enabling the Interactive JavaScript Console, Trying out the JavaScript Console

Page 28 highlights

2 Acrobat JavaScript Editor and Debugger Console Exercise: Working with the JavaScript Console Enabling the Interactive JavaScript Console The console window is part of the JavaScript debugger. To enable the console, you must enable the debugger. 1. In the Preferences dialog, select Enable JavaScript Debugger after Acrobat is restarted from the JavaScript Debugger options. 2. Select Enable interactive console. This option enables you to evaluate code that you write in the console window. 3. Select Show console on errors and messages. In case you make mistakes, the console will display information to help you. 4. Click OK to close the Preferences dialog. 5. Close and restart Acrobat. Trying out the JavaScript Console 1. Select Advanced > JavaScript > Debugger (Ctrl+j) to open the JavaScript debugger. 2. In the debugger, select Console from the View window. The console window should appear, as shown in Figure 2.4. FIGURE 2.4 Console window in debugger 28 Acrobat JavaScript Scripting Guide

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90

Acrobat JavaScript Editor and Debugger Console
Exercise: Working with the JavaScript Console
2
28
Acrobat JavaScript Scripting Guide
Enabling the Interactive JavaScript Console
The console window is part of the JavaScript debugger. To enable the console, you must
enable the debugger.
1.
In the
Preferences
dialog, select
Enable JavaScript Debugger after Acrobat is
restarted
from the JavaScript Debugger options.
2.
Select
Enable interactive console
.
This option enables you to evaluate code that you write in the console window.
3.
Select
Show console on errors and messages
.
In case you make mistakes, the console will display information to help you.
4.
Click
OK
to close the Preferences dialog.
5.
Close and restart Acrobat.
Trying out the JavaScript Console
1.
Select
Advanced > JavaScript > Debugger
(
Ctrl+j
) to open the JavaScript debugger.
2.
In the debugger, select
Console
from the
View
window.
The console window should appear, as shown in
Figure 2.4
.
F
IGURE
2.4
Console window in debugger