IntelliJ IDEA 2016.3 Help

Creating Method Breakpoints

On this page:


Method breakpoints /help/img/idea/2016.3/method_breakpoint.png let you follow the program flow at the method level.

Creating method breakpoints

To create a breakpoint using the editor

  1. Place the caret inside the method where you want to toggle a method breakpoint.
  2. On the main menu, chooseRun | Toggle Method Breakpoint. Method breakpoint appears at the method declaration.

    A balloon appears, informing you about the possible slow-down of the debugging process:


Alternatively, just click the left gutter at the method declaration.

To create a method breakpoint using the Breakpoints dialog

  1. On the main menu, chooseRun | View Breakpoints, or press Ctrl+Shift+F8.
  2. In the Breakpoints dialog box that opens, click/help/img/idea/2016.3/new.png.
  3. Select Method Breakpoint from the drop-down list.
  4. In the Add Method Breakpoint dialog box, specify the class name pattern, including the package name, and the name of the desired method.

When a debugging session starts, the application will pause in all classes with the names matching the specified pattern, at the specified method.

Deleting method breakpoints

To delete a method breakpoint

  1. Click the method breakpoint icon /help/img/idea/2016.3/method_breakpoint.png in the left gutter.
  2. On the main menu, choose Run | Toggle Method Breakpoint.

See Also

Last modified: 21 March 2017