Setting a Breakpoint in a C or C++ Program

See Also 

To set a line breakpoint:

To set all other types of breakpoints:

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

    The New Breakpoint dialog box opens. Make sure the Debugger drop-down list is set to the correct debugger.

  2. In the Breakpoint Type drop-down list, select the type of breakpoint you want to set: Function, Line, Instruction, Variable, Exception, or System Call.

  3. Specify the settings for the breakpoint.
  4. Set any additional options you require in the New Breakpoint dialog box and click OK. If you set a condition on the breakpoint, the expression is evaluated according to the language of the source file in which the breakpoint is set.

  5. The IDE creates the new breakpoint.

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

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.