Setting a watchpoint

Restriction: Watchpoints are available for interpreted Java only and only where they are supported by the JVM.

A watchpoint is a type of breakpoint that is triggered whenever the class field being monitored is modified. A watchpoint halts program execution even if the new value being written is the same as the old value of the field.

To set a watchpoint from the Breakpoints menu:

  1. Select Breakpoints > Set Watchpoint from the menu bar.
  2. Enter an expression that evaluates to a class field in the Address or Expression field.
  3. Click OK to set the watchpoint and close the Watchpoint dialog. Alternatively, use the Set button to set the watchpoint without closing the Watchpoint dialog.

Note: If you use the Set push button to set a breakpoint, select Cancel to close the Watchpoint dialog. Closing this dialog by selecting OK causes the breakpoint to be set in duplicate.


Breakpoints


Setting multiple breakpoints

Modifying breakpoint properties
Enabling and disabling breakpoints
Deleting a breakpoint
Viewing breakpoints


Optional breakpoint parameters