In this tutorial, we will learn about the Flowgorithm Conditional Breakpoint statement. This statement is used for debugging the flowchart.
Earlier, the Breakpoint symbol would always pause the flowchart execution. The Flowgorithm 3.0 version supports conditional Breakpoint.
We can use the Breakpoint statement to temporarily pause the flowchart execution. Now, we can specify the condition in the Breakpoint statement. The program will pause only when the condition is True.
The steps to add the Breakpoint symbol are as follows:
- To add the symbol, right-click on the flowline and choose the Breakpoint symbol from the pop-up window.
- Double-click on the symbol. This will open the Breakpoint edit window.
- Specify the breakpoint condition in the text box under the option ‘Only break when this expression is true:’
- Click on the OK button to save the statement.
In this example, the flowchart execution will pause when the loop counter variable is even. The Breakpoint symbol displays the break condition next to the symbol in the flowchart.
Notice that the condition (i%2 ==0) is displayed next to the Breakpoint symbol in the flowchart.
Notice that the flowchart execution stops when the loop counter is even in the Output Console window. The main purpose is that we can analyze the program and find problems in the flowchart. The Variable Watch window displays the program variables and the snapshot of the program state. The Step function executes the next step in the flowchart.
Flowgorithm flowchart tutorials on this website:
For more information on the Flowgorithm tool, please visit the official website at: http://flowgorithm.org/