Adding breakpoints

A breakpoint is set on an executable line of a program. If the breakpoint is enabled when you debug, the execution suspends before that line of code executes.

To add a breakpoint point, double click the marker bar located in the left margin of the C/C++ Editor beside the line of code where you want to add a breakpoint. A dot Icon: Breakpoint object is displayed in the marker bar and in the Breakpoints view, along with the name of the associated file.

Edit view with the cursor highlighting a breakpoint

For more information on marker bar icons, see Workbench User Guide > Reference > User interface information > Icons and buttons > Editor area marker bar.

Related concepts
C/C++ Development perspective

Related tasks
Using breakpoints and watchpoints

Related reference
Run and Debug dialog box

IBM Copyright Statement