IntelliJ IDEA 2018.2 Help

Creating Field Watchpoints

Field watchpoints icons debugger db field breakpoint svg help you target your debugging search to specific instance variables.

To create a field watchpoint in the Breakpoint dialog

  1. On the main menu, choose Run | View Breakpoints, or press Ctrl+Shift+F8.

  2. In the Breakpoints dialog box that opens, clickicons general add svg.

  3. Select Field Watchpoint from the drop-down list:

    add field watchpoint 1

  4. In the Add Field Watchpoint dialog box that opens, specify the following:
    • Fully qualified name of a class that contains the desired field. You can type it manually, or click browseButton, and find the desired class by name, or from the project.

    • Field name. You can type it manually, or click browseButton and select the desired field from the list of fields in the selected class.

To create a field watchpoint from the editor

  1. Open the desired class in the editor, and locate the field you want to create a watchpoint for.

  2. Alt+click on the left gutter at the field declaration line.

To create a field watchpoint from the Debug tool window

  1. During the debugging session, open the Variables tab.

  2. Select the desired field and choose Add Field Watchpoint on the context menu.

To delete a field watchpoint

  1. In the Breakpoints dialog box, select the desired field watchpoint, and clickicons general remove svg.

  2. In the editor, locate the line with the watchpoint to be deleted, and click its icon in the left gutter.

Last modified: 20 November 2018

See Also