5.3.8 Flow of debug process when pausing between steps
You can configure JP1/AO to pause after each step as it executes the debug task. This gives the user the opportunity to perform the actions below. If a flow includes multiple steps executed in parallel, you can perform these actions for each step.
-
Check the flow transitions and plug-in processing at the level of individual steps
-
Select whether to execute the processing of a particular plug-in
-
Change the values of plug-in properties and the return values of plug-ins
You might use this approach when you have a general idea of where a problem is located in the flow, and want to keep a close eye on the task as it executes. You could also use this procedure to see how the task behaves with unexpected property values.
- Important note
-
If a plug-in returns a value of 65 or higher, the processing of the debug task will not pause after the plug-in, even if configured to do so in the interruption settings. This could occur when the value of an input property is specified incorrectly, or JP1/AO is unable to connect to the OS of the operation target device.
Debugging with pauses between steps:
-
In the Perform Debugging dialog box, select Interrupt After Each Step in the Interruption Settings list box.
-
Specify the definition information for the debug service.
-
Click Run.
The Debug view and the service template debugging view appear, and the debug task is executed.
JP1/AO executes the debug task from the first step in the flow, which immediately pauses before executing its plug-in processing. For details about the flow of tasks in this scenario, see 5.3.9 Processing of debug process when pausing between steps.
-
In the Debug view and the Properties tab, check the mapping of the input properties, and change the input properties to arbitrary values as needed.
-
Select whether to execute plug-in processing. If you choose not to execute the processing of a particular plug-in, specify the output properties and return value of the plug-in. If you want to change the output properties and return value of a plug-in after executing its processing, configure JP1/AO to pause after processing the plug-in.
-
Click Rerun to resume step execution. If the plug-in requires a response, provide the response now.
Plug-in processing is executed and execution of the step finishes.
-
If you configured JP1/AO to pause after executing the plug-in processing in step 5, change the output properties and return values as needed, and then click Rerun.
-
JP1/AO executes the subsequent step according to the subsequent-step execution condition, but pauses before executing the plug-in processing.
-
To execute the subsequent step, repeat steps 4 to 7.
-
After the debug task has finished, edit the service template or plug-ins as needed.
Related topics
-
5.3.11 Step information that can be changed while step execution is paused
-
5.3.15 Handling debug tasks that are waiting for a response (response entry)
-
5.3.16 Procedure for checking property mapping settings during debugging
-
5.3.17 Procedure for changing the value of a plug-in input property during debugging
-
5.3.18 Procedure for changing the value of a plug-in output property during debugging
-
5.3.19 Procedure for changing plug-in return values during debugging