To use a breakpoint action, you must attach it to an existing breakpoint.
Note: To attach breakpoint actions to a breakpoint, add the associated breakpoint actions in the Breakpoint Actions preference page.
To attach breakpoint actions to a breakpoint:
- Initiate a debugging session.
- In the editor area of the Debug perspective, set a breakpoint.
- Open the Breakpoints view.
- From the IDE menu bar, choose Window > Show View.
The
Show View dialog appears.
- Choose Debug > Breakpoints.
- Click OK.
- In the Breakpoints view, right-click a breakpoint.
- Choose Properties from the shortcut menu.
The
Properties for dialog appears.
- Select Actions in the left pane of the Properties for dialog.
The
Actions page appears.
- Follow these sub-steps for each breakpoint action that you want to attach to the breakpoint:
- Select the breakpoint action from the Available actions table.
- Click Attach.
The selected breakpoint action moves from the
Available actions table to the
Actions for this breakpoint table.
Note: The debugger executes the breakpoint actions in the order shown in the Actions for this breakpoint table.
- To reorder the breakpoint actions in the Actions for this breakpoint table:
- Select the action in the table.
- Click Up to move the selected action up in the table.
- Click Down to move the selected action down in the table.
During a debugging session, the debugger executes the breakpoint actions when the breakpoint is encountered.