You can set watchpoints from the Variables view, the Outline view, or the editor. Once set, you can view and configure the properties of a watchpoint.
To add a watchpoint from the editor, place the cursor in the line that declares the field that you want to watch and select Run > Toggle Watchpoint from the workbench menu bar. If a breakpoint is already set for the field, then the breakpoint will be removed. If there is no breakpoint for the field, then the breakpoint will be created. Once the breakpoint is created, a new watchpoint marker is displayed in both the Breakpoints view and in the editor the marker bar (directly to the left of the field where you added the breakpoint).
To add a watchpoint from the Variables view or Outline view, complete these steps: