## Setting a Temporary Breakpoint

Use the Temporary Breakpoint command to set temporary breakpoints. Unlike a regular breakpoint that halts execution each time you debug a project, a temporary breakpoint halts execution only once. The debugger removes the temporary breakpoint after halting program execution.

#### To set a temporary breakpoint at a line of source code

1. Set a breakpoint on the source line
2. Right-click breakpoint and select Breakpoint Properties in the context menu

The Properties for C/C++ breakpoint window appears (Figure 1).

Figure 1 Properties for C/C++ breakpoint window

3. Enter the value "1" into the Ignore count field
4. Click OK

The dash icon changes to an active breakpoint icon. After you debug the project, the debugger halts program execution at the line that has the active breakpoint icon. After execution halts, the active breakpoint icon reverts to a dash icon.

##### Related concepts

- Breakpoints
- Watchpoints

##### Related tasks

- Enabling Breakpoints
- Disabling Breakpoints
- Removing Breakpoints

##### Related references

- Breakpoints view