
CHAPTER 2: The ExtendScript Toolkit Debugging in the Toolkit 27
Debugging in the Toolkit
You can debug the code in the currently active document window. Select one of the debugging
commands to either run or to single-step through the program.
When you run code from the document window, it runs in the current target application’s selected
JavaScript engine. The Toolkit itself runs an independent JavaScript engine, so you can quickly edit and
run a script without connecting to a target application.
Selecting a debugging target
The Toolkit can debug multiple applications at one time. If you have more than one Adobe application
installed, use the drop-down list at the upper left of a document window to select the target application
for that window. All installed applications that support JavaScript are shown in this list. If you try to run a
script in an application that is not running, the Toolkit prompts for permission to run it.
Some applications use multiple JavaScript engines; all available engines in the selected target application
are shown in a drop-down list to the right of the application list, with an icon that shows the current
debugging status of that engine. A target application can have more than one JavaScript engine, and
more than one engine can be active, although only one is current. An active engine is one that is currently
Select language for syntax
highlighting in Script Editor
Customize highlighting
styles in Preferences dialog
Comentarios a estos manuales