Database Reference
In-Depth Information
moves the arrow to the next one and then pauses, waiting for further instruction from
you.
Step Into works just like Step Over, with one caveat. If the current step happens to be a
Perform Script script step, then Step Into goes into that script and stops at its first line.
This way you can step through the subscript line by line. The Step Over button, on the
other hand, just executes the subscript in its entirety and takes you to the next line in the
calling script.
▪ When you click Step Out , FileMaker runs the current script to completion, takes you
back to the script that called it and then stops. If the script you're running wasn't called
by another script, then Step Out just finishes the script normally. Use Step Out if you ac-
cidentally step into a script you don't need to see in full detail, or if you're finished in-
vestigating a subscript and want to get back to the calling script quickly.
▪ If you want to skip a portion of a script, or run some steps over again, select a script step
and then click Set Next Step . This button moves the little current step arrow to the selec-
ted step without actually running anything. For instance, if you just want to test what
happens inside an If condition that you know won't be satisfied, then you can move the
current step into the If and then run its contents without the If step itself being run. You
can also back up and run a section of code over again by moving the current step up in
the list.
WARNING
Anytime you use the Set Next Step button, you're changing the normal flow of the script. The
results you get when you use it may not match what would happen if you ran the script nor-
mally. For instance, if you back up and start part of a script over again, things may be different
this time through because the script already did those parts. You may end up with a different
found set or a different current record. Or script variables may be different this time through.
You may be bypassing If conditions that would otherwise apply. And you may be on a different
layout from which the steps would normally run. Be careful, or you may end up sending the
script in an inappropriate direction.
▪ If the script is paused, waiting for you to click a button, then you can click Run/Pause to
start it running normally. It no longer stops at each step. Instead, it runs through every
step in sequence. If the script is already running, then clicking this button stops the script.
and lets you control its flow again. (To find out how to stop the script exactly where you
want, read about breakpoints in the next section.)
▪ If you've decided you've seen enough and you just want to stop the script completely,
click Halt Script . The Script Debugger window empties of its script-specific informa-
Search WWH ::




Custom Search