Hitachi

JP1 Version 11 JP1/Script Description and Reference (For Windows Systems)


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.

To use the Execution monitoring method:

  1. Choose Monitoring, Execute Monitoring, Execution or click the Execution button on the toolbar.

    Script Editor enters monitoring mode and monitoring begins. An arrow symbol ([Figure]) 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 ([Figure]). Execution is suspended at this point.

    [Figure]

    For details about using this dialog box, see 3.2.10 Setting and canceling breakpoints in monitoring mode.

  2. 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.

    [Figure]

To use the Step Execution monitoring method:

  1. 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 ([Figure]) appears to the left of the next line to be executed. Comment lines and line spaces are ignored.

    [Figure]

  2. 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.

    [Figure]

To use the Consecutive Step Execution monitoring method:

  1. 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 ([Figure]) appears to the left of the next line to be executed. Comment lines and line spaces are ignored.

    [Figure]

  2. 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.

    [Figure]

  3. 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.

    [Figure]

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

    [Figure]

  • To view the Watch window, choose View, View Watch Window while monitoring a script. This command is available only during monitoring.

  • Watch window example

    [Figure]

  • 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.