Other Content

Table Of Contents
524 Writing Lua Scripts
Tool name Tool function
Disable
Breakpoints
Switches back from debugging mode to normal
mode and resumes the script.
Set
Permissions
Sets permission levels to Protected, View Only, or
Unprotected and allows you to set a password for
the script.
Using the Tools Panel
At the bottom of the window, the Tools panel shows the scripting data. For more
information, see the
Debugging Scripts
section.
Tab Window Display
Console Script errors are printed here.
Print statements embedded in the script also print here.
Globals Selected global variables are displayed.
To select a global variable for display, select Click to add new
watch variable at the bottom of the Tools panel.
Call Stack Displays the call tree for the currently executing function.
Locals Local variables in the current function’s scope are displayed.
Resources Upload, insert, and manage images here.
Using the Status Bar
The status bar at the bottom of the window shows basic script data, as
described in this example: stopwatch, 1.1,4:1,Running.
Name of the document that the script application is attached to
(stopwatch)
Problem and page number (1.1)
Script line and character, (4:1 describing line 4 and character 1)
Operational state of the script (Running). Note the possible states:
- Normal mode: Running, Paused, or Error