Pausing execution conditionally
See Xml\Tutorial\1201 Debugging documents\Debugging.Xml for the file used in this tutorial
Tip! Conditional breakpoints are special markers to pause the execution of a document when encountered and their logical condition evaluates to True
Tip! When running the example, the value of the [DoBreak] variable determines whether or not a conditional breakpoint is activated. This example assumes [True].
1. Open the example file
Open file [Xml\Tutorial\12. Debugging documents\Debugging.Xml] |
2. Set the breakpoint on process [Only keep Belgian ISINs]
Right click the mouse on process [Only keep Belgian ISINs] |
|
Click on [Set conditional breakpoint...] in the context menu |
The [Set conditional breakpoint] window is displayed |
|
Set the [Expression] field to [DoBreak=true] |
|
Click the [Apply] button |
The IDE shows the (conditional) breakpoint that was just set |
3. Run until breakpoint ("Pause") and examine intermediate results
Click the green [Run] button on the toolbar to run the document until the breakpoint |
The output of the first process [Show transactions] is displayed in the [Search in datatable] window |
|
Examine the results and close the window by pressing the cross in the upper right side |
The [Intermediate execution result] window is displayed |
|
Examine the values of variables, datatables, external tables, and logging before the breakpoint |
|
Close the [Intermediate execution result] window |
The IDE remains in run mode and shows the current [Paused] status |
Execution of a document in [Paused] status can be either stopped or resumed