Creating Field Watchpoints
Field watchpoints help you target your debugging search to specific instance variables.
On this page:
- Creating field watchpoints using the Breakpoints dialog
- Creating field watchpoints using the editor
- Creating field watchpoints from the Debug tool window
- Deleting field watchpoints
Creating field watchpoints using the Breakpoints dialog
To create a field watchpoint using the Breakpoint dialog
- On the main menu, choose Run | View Breakpoints, or press Ctrl+Shift+F8.
- In the Breakpoints dialog box that opens, click.
- Select Field Watchpoint from the drop-down list:
- In the Add Field Watchpoint dialog box that opens, specify the following:
Creating field watchpoints using the editor
To create a field watchpoint from the editor
- Open the desired class in the editor, and locate the field you want to create a watchpoint for.
- Alt+click on the left gutter at the field declaration line.
Creating field watchpoints from the Debug tool window
To create a field watchpoint from the Debug tool window
Deleting field watchpoints
To delete a field watchpoint
- In the Breakpoints dialog box, select the desired field watchpoint, and click.
- In the editor, locate the line with the watchpoint to be deleted, and click its icon in the left gutter.
See Also
Reference:
Concepts:
Last modified: 18 July 2017