Adobe 27510753 - InDesign CS2 - PC Manual page 61

Scripting guide
Hide thumbs Also See for 27510753 - InDesign CS2 - PC:
Table of Contents

Advertisement

Adobe InDesign CS2 Scripting Guide
You can set breakpoints on lines that do not contain any code, such as comment lines. When the Toolkit runs
the program, it automatically moves such a breakpoint down to the next line that actually contains code.
Breakpoint icons
Each breakpoint is indicated by an icon to the left of the line number. The icon for a conditional breakpoint is
a diamond, while the icon for an unconditional breakpoint is round. Disabled breakpoints are indicated by an
outline icon, while active ones are filled.
Unconditional breakpoint. Execution stops here.
Unconditional breakpoint, disabled. Execution does not stop.
Conditional breakpoint. Execution stops if the attached JavaScript expression evaluates to true .
Conditional breakpoint, disabled. Execution does not stop.
The Breakpoints tab
The Breakpoints tab displays all breakpoints set in the current Editor tab. You can use the tab's flyout menu to
add, change, or remove a breakpoint.
You can edit a breakpoint by double-clicking it, or by selecting it and choosing Add or Change from the
context menu. A dialog allows you to change the line number, the breakpoint's enabled state, and the
condition statement.
Whenever execution reaches this breakpoint, the debugger evaluates this condition. If it does not evaluate
to true , the breakpoint is ignored and execution continues. This allows you to break only when certain
conditions are met, such as a variable having a particular value.
Using ExtendScript Tools and Features
53

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Indesign cs2

Table of Contents