Adobe 27510753 Scripting Guide - Page 59
Controlling code execution, Visual indication of execution states, Continue, Break, Step Over
UPC - 718659445294
View all Adobe 27510753 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 59 highlights
Adobe InDesign CS2 Scripting Guide Using ExtendScript Tools and Features 51 the variables and functions are already known to the JavaScript engine. During debugging, however, this is an extremely useful way to display the current value of a variable, along with its current data type. You can turn off the display of help tips using the Display JavaScript variables and Enable UI help tips checkboxes on the Help Options page of the Preferences dialog. Controlling code execution The debugging commands are available from the Debug menu, from the Editor's right-click context menu, through keyboard shortcuts, and from the toolbar buttons. Use these menu commands and buttons to control the execution of code when the JavaScript Debugger is active. Run Continue Break F5 (Windows) Ctrl+R (Mac OS) Ctrl+F5 (Windows) Cmd+. (Mac OS) Starts or resumes execution of a script. Disabled when script is executing. Halts the currently executing script temporarily and reactivates the JavaScript Debugger. Enabled when a script is executing. Stop Shift+F5 (Windows) Stops execution of the script and generates a runtime error. Ctrl+K (Mac OS) Enabled when a script is executing. Step Over F10 (Windows) Ctrl+S (Mac OS) Halts after executing a single JavaScript line in the script. If the statement calls a JavaScript function, executes the function in its entirety before stopping (do not step into the function). Step Into F11 (Windows) Ctrl+T (Mac OS) Halts after executing a single JavaScript line statement in the script or after executing a single statement in any JavaScript function that the script calls. Step Out Shift+F11 (Windows) When paused within the body of a JavaScript function, resumes Ctrl+U (Mac OS) script execution until the function returns. When paused outside the body of a function, resumes script execution until the script terminates. Visual indication of execution states While the engine is running, an icon script is active. in the upper right corner of the Toolkit window indicates that the When the execution of a script halts because the script reached a breakpoint, or when the script reaches the next line when stepping line by line, the Editor displays the current script with the current line highlighted in yellow.