Help

Table Of Contents
Using FileMaker Pro Advanced tools
F
ILEMAKER PRO HELP 585
4. Select Pause on error if you want scripts to pause when errors are encountered.
For Last error, click the error number to open a Help topic with details about the error. See
FileMaker Pro error codes.
Note When you use the Script Debugger to step through enabled scripts activated by a script
trigger, you can’t interact with the document windows, move between fields or records, change the
data, close the window, or quit. This blocking of interaction only occurs when a script is triggered via
some action. When you are debugging a script that is not activated by a script trigger, you can
interact normally with the document windows, fields, and records.
Viewing sub-scripts
You can view sub-scripts when you step through scripts in the Script Debugger. For example, if
Script A calls Script B, which then calls Script C, you can view the steps in all three scripts.
1. Choose Tools menu > Script Debugger.
To open the Script Debugger from the Manage Scripts dialog box, select a script, press Shift
and click Perform. To close the Script Debugger, press Ctrl (Windows) or Command (OS
X) and
click Perform. For more information on keyboard shortcuts, see
FileMaker Pro Advanced
keyboard shortcuts (Windows) and FileMaker Pro Advanced keyboard shortcuts (OS X).
2. Select a script step that calls a sub-script.
3. Click Step Into.
Set/Clear Breakpoint
Set or clear a breakpoint from the selected line.
Breakpoints allow the Script Debugger to execute large sections of a script,
pausing only to inspect the section marked with a breakpoint. Breakpoints
are ignored by FileMaker
Pro when the Script Debugger is not in use. You
can set or clear breakpoints in the Script Debugger or when you create
scripts. To set a breakpoint when you create scripts, click to the left of the
step. Breakpoints are saved with the script in which they are set. You can
set breakpoints on multiple steps.
Note You cannot set breakpoints on steps called by a button or custom
menu.
Edit Script Open the Edit Script dialog box to edit the current script. You can make
changes to a script while it is executing, but once you save changes to the
script, execution halts.
Note To edit the script step associated with buttons or custom menu items,
use the Button Setup or Manage Custom Menu dialogs.
Open/Close Data
Viewer
Open (or close) the Data Viewer window so you can monitor specified
fields, variables, and calculation formulas. See
Using the Data Viewer
(FileMaker Pro Advanced).
Authenticate/
Deauthenticate script
Unlock Script Debugger or Data Viewer for scripts that do not allow modify
privileges.
You must have Full Access privileges to authenticate a script. The higher
level of privileges applies to all scripts, but not to other file elements (for
example, records and layouts). Your editing privileges last until you close
both the Script Debugger and the Data Viewer.
Choose To