Attaching breakpoint actions to breakpoints

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:

  1. Initiate a debugging session.
  2. In the editor area of the Debug perspective, set a breakpoint.
  3. Open the Breakpoints view.
    1. From the IDE menu bar, choose Window > Show View.

      The Show View dialog appears.

    2. Choose Debug > Breakpoints.
    3. Click OK.
  4. In the Breakpoints view, right-click a breakpoint.
  5. Choose Properties from the shortcut menu.

    The Properties for dialog appears.

  6. Select Actions in the left pane of the Properties for dialog.

    The Actions page appears.

  7. Follow these sub-steps for each breakpoint action that you want to attach to the breakpoint:
    1. Select the breakpoint action from the Available actions table.
    2. 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.
  8. To reorder the breakpoint actions in the Actions for this breakpoint table:
    1. Select the action in the table.
    2. Click Up to move the selected action up in the table.
    3. 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.