## Setting Breakpoints

Use the Set Breakpoint command (Ctrl+Shift+B) to set a breakpoint. A regular breakpoint suspends program execution. The debugger executes the line of source code that contains the regular breakpoint.

TIP If you find that a breakpoint is not being hit, 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 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.

Figure 1 shows some source code and the marker bar to the left of the source code. The selected line shows the breakpoint dot that appears in the marker bar when a breakpoint is set.

Figure 1 - Setting Breakpoints in an editor view

#### Setting a Breakpoint in Editor or Disassembly Views

- Double-click the marker bar to the left of the line of code where you want to place a breakpoint

> or

- Right-click in the marker bar and select Toggle Breakpoint

> or

- Click on the line of code and select Run > Toggle Breakpoint from the program menu bar

> or

- While selecting a line, press Ctrl+Shift+B

The active breakpoint dot appears () in the marker bar. If the breakpoint is resolved during the debug session, the debugger halts program execution at the line with the resolved breakpoint ().

NOTE Setting a breakpoint in a file affects execution of all build targets that include that file.

For more information on breakpoints, see C/C++ Development User Guide > Concepts > Debug > Breakpoints.

##### Related concepts

- Breakpoints

##### Related tasks

- Enabling Breakpoints
- Disabling Breakpoints
- Removing Breakpoints

##### Related references

- Breakpoints view