A SERVICE OF

logo

58 FileMaker Pro Advanced Development Guide
Keep these points in mind:
1 To monitor fields, variables, and calculations of a currently
executing script, add them to the Data Viewer list before running the
script in the Script Debugger.
1 Expression values in the Data Viewer automatically refresh when
using the Script Debugger.
1 Expressions in the Data Viewer window are not removed until you
remove them.
1 You can add local and global variables to the Data Viewer. Local
variables begin with “$” and global variables begin with “$$”. For
more information about variables, see Help.
1 Click Refresh Values to update the values for calculations that are
visible in the list. Values update as you scroll through the list.
Disabling script steps
You can disable and enable script steps to test portions of a script.
When you execute a script, disabled script steps are skipped.
To disable script steps:
1. Choose Scripts menu > ScriptMaker.
Or, click the ScriptMaker button in the Script Debugger window.
2. In the Define Scripts dialog box, select the script, then click Edit (or
double-click the script name).
3. In the Edit Script dialog box, select one or more script steps, then
click
Disable or Enable.
Keep these points in mind:
1 To disable script steps, you must have the Modifiable privilege for
the script in your privilege set.
1 You cannot modify options for disabled script steps.
1 If the file is opened in FileMaker Pro, users can see disabled script
steps, but cannot enable them.
1 If you disable an If script step, you must also disable the
corresponding End If step. This also applies to Loop, Else, Exit Loop
If, and Else If script steps.
1 The Script Debugger does not stop executing at breakpoints on
disabled script steps.
1 You cannot use the Set Next Step feature to move to a disabled
script step.
1 If you copy, paste, or import scripts with disabled script steps, the
steps remain disabled in the new location. For more information, see
“Copying scripts, script steps, or fields” on page 12.
1 Disabled script steps are preceded by “//”. Disabled script steps will
display as “<unknown>” if opened in or imported into a FileMaker 7
file.
1 Disabled script steps print in italics.