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, directly to the left of the line where you want to add the breakpoint, open the marker bar (vertical ruler) pop-up menu and select Toggle Breakpoint.  You can also use the global Run > Toggle Line Breakpoint menu item or double click the marker bar next to the source code line. 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
Working with breakpoints and watchpoints

Related reference
Run and Debug dialog box

IBM Copyright Statement