## Enabling, Disabling and Removing Breakpoints

Use the Toggle Breakpoint command (Ctrl+Shift+B) to set a regular breakpoint in an Editor or Disassembly view. Only a single breakpoint can exist on a source code line. A regular breakpoint suspends program execution when it is hit, or executed, during a debug session. The debugger executes the line of source code that contains the regular breakpoint, then opens the Debug perspective to allow examination and modification.

If a regular breakpoint already exists on the selected line, as indicated by the enabled breakpoint badge () in the marker bar, use Toggle Breakpoint to remove the breakpoint.

#### Enabling and Disabling breakpoints

Once a source line is selected in an editor or Disassembly view, the methods of toggling breakpoints to be enabled of disabled include:

- Choose the Run > Toggle Breakpoint menu option
- Right-click and choose Toggle Breakpoint from the context menu
- Press Ctrl+Shift+B
- Double-click in the marker bar to enable or disable a breakpoint on that source line

#### Removing breakpoints

In the Breakpoints view, locate the source code line to modify and:

- Right-click the breakpoint and choose Remove from the context menu to remove the breakpoint

NOTE Once a breakpoint is removed from the Breakpoints view it cannot be recovered using the Breakpoints view, it must be set in an editor or disassembly view.

Breakpoints must first be loaded and resolved before they can be hit during a debug session. See Resolving Breakpoint States for more information on the various states a breakpoint can exhibit.

See Saving and importing breakpoints for information on storing breakpoint data sets for sharing or re-use.

TIP If you find that a breakpoint is not being hit during a debug session, verify that the EXE or DLL is listed in the Executables view.

TIP If debugging a server launched by a client, you must attach to the server process using the Symbian OS Data view in order to hit the breakpoints in the server. Alternately, you can launch the server and client as two independent EXEs using the same COM port and debug them that way.

#### Other references

- Breakpoints overview