3.2.8 Starting and canceling monitoring
Monitoring means tracking the operation of a script file while it is executing.
JP1/Script provides three monitoring methods.
Command |
Description |
---|---|
Execution |
Starts or restarts execution up to the next breakpoint. |
Step Execution |
Executes commands or statements one by one. |
Consecutive Step Execution |
Executes a sequence of commands or statements until the user chooses Pause Consecutive Step Execution. |
-
Monitoring using the Execution method
To use the Execution monitoring method:
-
Choose Monitoring, Execute Monitoring, Execution or click the Execution button on the toolbar.
Script Editor enters monitoring mode and monitoring begins. An arrow symbol () appears to the left of the next line to be executed. Comment lines and line spaces are ignored.
Execution continues until there is a breakpoint, indicated by a circle symbol (). Execution is suspended at this point.
For details about using this dialog box, see 3.2.10 Setting and canceling breakpoints in monitoring mode.
-
To cancel monitoring, choose Monitoring, Cancel Monitoring or click the Cancel Monitoring button on the toolbar.
Monitoring immediately stops and Editor returns to edit mode.
-
Monitoring using the Step Execution method
To use the Step Execution monitoring method:
-
Choose Monitoring, Execute Monitoring, Step Execution or click the Step Execution button on the toolbar.
Editor enters monitoring mode and monitoring begins. An arrow symbol () appears to the left of the next line to be executed. Comment lines and line spaces are ignored.
-
To cancel monitoring, choose Monitoring, Cancel Monitoring or click the Cancel Monitoring button on the toolbar.
Monitoring immediately stops and Editor returns to edit mode.
-
Monitoring using the Consecutive Step Execution method
To use the Consecutive Step Execution monitoring method:
-
Choose Monitoring, Execute Monitoring, Consecutive Step Execution or click the Consecutive Step Execution button on the toolbar.
Editor enters monitoring mode and monitoring begins. An arrow symbol () appears to the left of the next line to be executed. Comment lines and line spaces are ignored.
-
To halt monitoring temporarily, choose Monitoring, Execute Monitoring, Pause Consecutive Step Execution. Alternatively, click the Pause Consecutive Step Execution button on the toolbar.
Monitoring is temporarily suspended.
-
To cancel monitoring, choose Monitoring, Cancel Monitoring or click the Cancel Monitoring button on the toolbar.
Monitoring immediately stops and Editor returns to edit mode.
- Notes
-
-
If the script file enters an infinite loop, consecutive step execution will not stop when you choose Monitoring, Execute Monitoring, and then Pause Consecutive Step Execution. Instead, choose Monitoring, Cancel Monitoring to cancel execution.
-
Syntax or execution errors found during monitoring are displayed in an Error window. Variable values added to the Watch window are successively updated and displayed during execution.
Error window example
-
To view the Watch window, choose View, View Watch Window while monitoring a script. This command is available only during monitoring.
-
Watch window example
-
If you attempt to monitor an unnamed script file, the Save As dialog box appears. You must save the file before you can monitor its execution.
-
If you have edited the script file, the syntax check is performed on the updated contents, but the updates are not saved.
-
Do not monitor a script file for which the On Error Goto statement is specified.
-