Programming Guide : 16. Debugging Your Application : How You Can Use Break Conditions : Method Invocation Break Conditions
 
Share this page                  
Method Invocation Break Conditions
A method invocation break condition causes the application to pass control to the OpenROAD Debugger whenever it encounters the specified method in the code. The Debugger receives control immediately before the statement that invokes the method.
Set Method Invocation Break Conditions
You set a break condition for methods on the Breakpoints: Method calls portlet of the Debug tab. You can select methods from system classes or user classes.
To set a break condition on a method
1. Click the Develop tab and select the application in which you want to set method break conditions in the Applications portlet.
2. Click the Debug tab.
3. Click the Methods portlet tab on the right side of the Workbench window.
The Breakpoints: Method calls portlet is displayed.
4. Select an object type: User Classes or System Classes.
If you select System Classes, a list of system classes is displayed in the Class list. If you selected User Classes, a list of user classes is displayed if any user classes are defined for your application.
When you choose a class, a list of methods defined for that class is displayed under Method.
5. Select a method in the Methods list and then click Set Breakpoint.
A breakpoint is set for the selected method.
6. (Optional.) Repeat the previous two steps to set breakpoints for other methods.
Method break conditions are displayed in the Activations portlet of the Debug tab. If you want to deactivate or reactivate a break condition, select or clear the appropriate check box in the Activations portlet.