Adobe 12001196 Scripting Guide - Page 19

Acrobat JavaScript Editor and Debugger Console, Goals, Contents

Page 19 highlights

2 Acrobat JavaScript Editor and Debugger Console Introduction to the JavaScript Editor and Debugger Console Acrobat provides a development environment in which you can implement and test Acrobat JavaScript functionality. On both Windows and Macintosh systems, you have a choice of using Acrobat's built-in editor or a third-party editor to develop your code. To introduce you to a simple method of evaluating short scripts, this chapter details how you can use Acrobat's JavaScript debugger console with the built-in JavaScript editor to evaluate scripts. Chapter 3, "Acrobat JavaScript Debugger," will introduce the full feature set of Acrobat's debugger, which enables you to perform more sophisticated debugging tasks such as setting breakpoints, inspecting variables, and stepping through code-to name a few. Chapter Goals At the end of this chapter, you will be able to: ● Specify the type of editor you use to write your code. ● Identify the extra capabilities that Acrobat supports on some external editors. ● Invoke the JavaScript console and use it to interactively execute code and display print statements. Contents Topics JavaScript Console Using a JavaScript Editor Specifying the Default JavaScript Editor Using the Built-in Acrobat JavaScript Editor Using an External Editor Exercises Exercise: Working with the JavaScript Console Acrobat JavaScript Scripting Guide 19

  • 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 Scripting Guide
19
2
Acrobat JavaScript Editor and
Debugger Console
Introduction to the JavaScript Editor and Debugger Console
Acrobat provides a development environment in which you can implement and test
Acrobat JavaScript functionality. On both Windows and Macintosh systems, you have a
choice of using Acrobat’s built-in editor or a third-party editor to develop your code. To
introduce you to a simple method of evaluating short scripts, this chapter details how you
can use Acrobat’s JavaScript debugger console with the built-in JavaScript editor to
evaluate scripts.
Chapter 3, “Acrobat JavaScript Debugger,”
will introduce the full feature set of Acrobat’s
debugger, which enables you to perform more sophisticated debugging tasks such as
setting breakpoints, inspecting variables, and stepping through code—to name a few.
Chapter Goals
At the end of this chapter, you will be able to:
Specify the type of editor you use to write your code.
Identify the extra capabilities that Acrobat supports on some external editors.
Invoke the JavaScript console and use it to interactively execute code and display print
statements.
Contents
Topics
Exercises
JavaScript Console
Exercise: Working with the JavaScript
Console
Using a JavaScript Editor
Specifying the Default JavaScript Editor
Using the Built-in Acrobat JavaScript
Editor
Using an External Editor