Set Watchpoint Dialog
The User can specify that the debugger will stop when a particular field
of a class/object is read or written with a particular value.
This is called a watchpoint. Check the
Target Info Dialog to see if your target JVM supports watchpoints.
To display the Set Watchpoint Dialog, select the desired field
for the watchpoint in the This Panel
in the top-level Main Window, or in an
Object Panel
in the top-level Objects Window.
Then select the Watchpoint... menu item from the right-click popup context menu.
Or select the desired field
for the watchpoint by drilling down through the loaded classes tree hierarchy
in the Loaded Classes Panel
in the top-level Main Window, all the way to the desired field.
Then select the Watchpoint... menu item from the right-click popup context menu.
watchpoint type
Select one of the following watchpoint types (displayed in red):
- All Objects in This Class - a watchpoint will be set in all object
instances of the given class.
- This Object Only - a watchpoint will be set only
in the given object instance. Check the
Target Info Dialog to see if your target JVM supports instance filters.
info
The following information is displayed (in blue) about the watchpoint field:
- Class Name - the class name (a tool tip displays
the full class name including package names) containing
the watchpoint field.
- Field Name - the field name for the watchpoint.
- Field Type - the field type for the watchpoint.
access type
Select one of following access types (displayed in red) for the watchpoint trigger:
- Access (Read) - stop if the field is accessed (read).
- Modification (Write) - stop if the field is modified (written).
value
Select one of the following field values for the watchpoint trigger:
- Any Value - the watchpoint will trigger for any value of the field.
- == Value - the watchpoint will trigger only if the field value equals the
particular value entered in the (red) Value text field.
- != Value - the watchpoint will trigger only if the field value does not equal the
particular value entered in the (red) Value text field.
- < Value - the watchpoint will trigger only if the field value is less than the
particular value entered in the (red) Value text field.
- <= Value - the watchpoint will trigger only if the field value is less than or equal to the
particular value entered in the (red) Value text field.
- > Value - the watchpoint will trigger only if the field value is greater than the
particular value entered in the (red) Value text field.
- >= Value - the watchpoint will trigger only if the field value is greater than or equal to the
particular value entered in the (red) Value text field.
buttons
- OK - sets the specified watchpoint
and closes the dialog. If there is a error, an error message dialog will be
displayed. The new watchpoint will be listed in the
Watchpoints Panel.
Watchpoint events are displayed in the Events Panel.
- Cancel - closes the dialog without
setting a watchpoint.
- Help - displays this Help.
©2001-2010. debugtools.com LLC. All rights reserved.