Database Reference
In-Depth Information
tion, and FileMaker returns to normal behavior. The Halt Script button doesn't let the
script finish running. Instead, it stops the script in its tracks, just like the Halt Script
script step.
▪ When doing serious debugging, triggered scripts can sometimes become a hassle. For ex-
ample, an OnRecordLoad trigger will run its script every time you switch from Layout
mode to Browse mode. When that happens, the script you were debugging is paused
while the triggered script pops into the Script Debugger window. The Enable/Disable
Script Triggers button exists to suppress these interruptions.
WARNING
If you've disabled script triggers you must keep the Script Debugger window open. Closing it
will automatically and silently re-enable the triggers.
▪ You use the Set/Clear Breakpoints button to add or remove breakpoints in your script.
You'll learn about these shortly.
▪ The Edit Script button is one of the Script Debugger's handiest buttons. If you're debug-
ging a script that isn't quite working, and you spot the problem while it's running in the
debugger, just click Edit Script. FileMaker opens the Edit Script window for the running
script and takes you straight to the step that's next in line (the one with the arrow point-
ing to it in the debugger window). You can easily make the change and then run the
script again to test it.
NOTE
When you click the Edit Script button, FileMaker opens the script for editing but keeps it run-
ning in the Script Debugger. You're free to jump back to the Script Debugger window and then
click any of the buttons to step the script forward further. So you can also use the Edit Script
button to see more details about a script (like the exact calculation in a Set Field script step)
while you're debugging. However, if you save a change to the script, FileMaker tells you it
needs to halt the running script before it can apply the change.
▪ The Open/Close Data Viewer button shows FileMaker Pro Advanced's Data Viewer
window, which is explained on The Data Viewer later in this chapter.
▪ The Authenticate/Deauthenticate button with the padlock icon on it lets you debug a
script to which you would normally not have access (because of restrictions imposed by
your privilege set). Sometimes a script you create behaves differently for your users
(who don't have full access to the database) than it does for you. You can log into your
Search WWH ::




Custom Search