Setting method breakpoint

Method breakpoints are set on methods that do not have source code. To set a method breakpoint on a line of source code:

  1. Open the source code file in the editor.
  2. Choose Window > Show View > Outline from the IDE menu bar.

    The Outline view appears displaying an outline of the structured elements of the C/C++ file that is currently open in the editor area.

  3. Select the method where you want to add a breakpoint.
  4. Choose Run > Toggle Breakpoint from the IDE menu bar. You can also choose Toggle Breakpoint from the shortcut menu.

    A breakpoint appears in the Breakpoints view. A breakpoint appears on the marker bar in the file's editor for the method that was selected, if source code exists for the class.

When the breakpoint is enabled, thread execution suspends before the method enters or exits.