Using Fault Breakpoints in the BPEL Debugger
See Also
Fault breakpoints are special breakpoints used to monitor the state of variables before a fault is thrown. You can use this type of breakpoint to better understand the reasons for a fault by evaluating the BPEL process data before it runs into a fault state.
To set a fault breakpoint in BPEL:
- In the IDE, open the BPEL file in the Design view.
- Select any element on the diagram and choose Run > New Breakpoint in the main menu.
- In the New Breakpoint dialog box, select BPEL from the Debugger drop-down list.
Note that the Breakpoint Type is automatically set to Fault.
- Review the values in the Process Target Namespace and Process Name fields. The IDE populates these fields automatically.
- Note that the All Faults for the Given Process checkbox is selected by default. You can do one of the following:
- Leave this checkbox selected to have the process suspend at the first fault that occurs in the process.
- Clear this checkbox and specify the namespace and name of a particular fault to set a fault breakpoint only for the specified fault.
- Click OK.
Open the Breakpoints window to view the fault breakpoint you have just set. Note that fault breakpoints are not shown anywhere on the diagram or in the Navigator window.
When you run a test case, the process will be suspended when it runs into a fault. In the Local Variables window, you can view the values of the variables before the fault has been thrown.
To remove a fault breakpoint from the BPEL process:
- Open the Breakpoints window by choosing Window > Debugging > BPEL > Breakpoints.
- Right-click the fault breakpoint you want to remove and choose Delete.
Note that choosing Delete All from the pop-up menu removes all breakpoints currently set in the IDE.
To disable a fault breakpoint:
- In the Breakpoints window, clear the Enabled checkbox for the fault breakpoint you want to disable.
This disables the breakpoint but does not remove it completely.
- See Also
- Using Breakpoints to Debug BPEL Processes
- Local Variables Window
- Starting and Finishing a BPEL Debugging Session
Legal Notices