# Adding breakpoint actions

To add a new breakpoint action:

1. Click Window > Preferences.
2. Expand C/C++ > Debug and click Breakpoint Actions.

3. In the Breakpoint Actions page, click New.

4. In the New Breakpoint Action dialog box, type a name for the action in the Action name box.
5. Select an action from the Action type list.
6. Set the action's attributes:

- For a sound action, select a sound file.
- For a log action, type the message to appear in the Log Action Messages console.
- For a resume action, set the Resume after time in seconds.
- For an external tool action, click Choose to select a program.

7. Click OK.

The new breakpoint actions appears in the Actions available for any breakpoint in the workspace list.

C/C++ Development perspective

Using breakpoints, watchpoints, and breakpoint actions

Debug preferences