5.7 Setting a Watch Breakpoint

A watch breakpoint provides notification to a developer when a variable that is being watched changes. The program stops at the line immediately after the statement which caused the change.

Follow these steps:

  1. Ensure that the Breakpoints tab is selected in the main debugger window. The Breakpoint menu is now available on the menu bar.

  2. Select or double-click the variable CUSTNO in the Source pane.
  3. Select Breakpoints > Set Watch from the menu bar to invoke the Watch Breakpoint dialog box.
  4. In the Expression entry field of the dialog box, the CUSTNO variable is automatically entered as it was selected in the Source pane.

  5. Ensure the field Bytes to Monitor is set to zero.
  6. Click OK

Click on to indicate that you have completed these steps.