Setting a Breakpoint in a C or C++ Program

See Also 

To set a line breakpoint:

To set a function breakpoint:

  1. Choose Run > New Breakpoint (Ctrl-Shift-F8).

    The New Breakpoint dialog box opens. Make sure the Debugger drop-down list is set to C, C++ Fortran (gdb).

  2. In the Breakpoint Type drop-down list, set the type to Function..

  3. Type the function name in the Function Name text field.
  4. Set any additional options you require in the New Breakpoint dialog box and click OK.

  5. The IDE creates the new breakpoint for the specified function.

To modify an existing breakpoint:

  1. Choose Windows > Debugging > Breakpoints (Alt-Shift-5) to open the Breakpoints window.
  2. Right-click any breakpoint and choose Customize to open the Customize Breakpoint dialog box.
  3. Adjust any settings or actions you require and click OK.

    The IDE updates the breakpoint

To enable and disable a breakpoint:

Note:

See Also
C anc C++ Breakpoints in the IDE

Legal Notices