Programming Guide : 16. Debugging Your Application : How You Can Use Break Conditions : Break Conditions
 
Share this page                  
Break Conditions
You can set, deactivate, or delete break conditions. See the following sections for instructions.
Set Break Conditions
You set break conditions in a component script on the Debug tab of OpenROAD Workbench.
To set a break condition
1. Click the Develop tab and select the application you want to debug in the Applications portlet.
2. Click the Debug tab.
The components of the selected application are displayed in the Source Components portlet on the left side of the window.
3. Select the component in whose script you want to set a breakpoint.
The script for the component is displayed in the Source Breakpoints portlet on the right side of the window.
4. Click the line number where you want to set the breakpoint.
You can also set source breakpoints using the View Processed Script option in the Frame Editor or the 4GL Procedure Editor.
For more information about types of break condition, see the appropriate section.
Deactivate and Reactivate Break Conditions
You can deactivate a break condition without deleting it.
To deactivate a break condition
1. Click the Develop tab and select the application containing the component with break conditions in the Applications portlet.
2. Click the Debug tab.
The components of the selected application are displayed in the Source Components portlet on the left side of the window.
3. (Optional.) Select the component in whose script you want to deactivate a breakpoint condition.
The script for the component is displayed in the Source Breakpoints portlet on the right side of the window.
4. Click the Activations portlet tab on the left side of the window.
5. Click the check box for the condition you want to deactivate so that it is unchecked.
The Debugger will ignore a break condition while it is deactivated.
The deactivated breakpoint is still marked in the script, but is displayed only as an outline:
To reactivate a deactivated break condition
1. Click the Develop tab and select the application containing the component with break conditions in the Applications portlet.
2. Click the Debug tab.
The components of the selected application are displayed in the Source Components portlet on the left side of the window.
3. Click the Activations portlet tab on the left side of the window.
4. Click the check box of the deactivated condition so that it displays a checkmark.
For instructions to delete break conditions, see How You Can Delete Break Conditions.
How You Can Delete Break Conditions
There are several ways to delete break conditions:
On the Call, Methods, or Other portlets tabs of the Debug tab, clear the break condition you want to delete.
In the Activations portlet of the Debug tab, select the break condition you want to delete, then use any of the following methods to delete your selection:
Right-click on the condition and select Delete from the pop-up menu.
Press the Delete key.
Click Edit, Delete from the Workbench menu.
To delete all break conditions listed in the Activations portlet, select one of the conditions and then right-click and select Clear from the pop-up menu.
For additional information about deleting source breakpoints, see Delete Source Breakpoints.