5.9 Hitting a Watch Breakpoint
In this lesson you will see how to hit the watch breakpoint for the variable CUSTNO
that you set in the Setting a Watch Breakpoint lesson.
Follow these steps:
- If your source is not already loaded or your application is not running, repeat the steps
in lesson 5.1.
- In the main debugger window, select the tab for Breakpoints and right-click on the watch
breakpoint that you set in lesson 5.7. If you are restarting the application and debugger, a
watch breakpoint is disabled by default. Right-click on the breakpoint and select
Enable Breakpoint if necessary. When a breakpoint is re-enabled it's icon turns from grey to red.

- Click on the Run icon
on the Debugger toolbar. Your 5250 session
loads the entry screen for your application showing a Customer Number entry field.
Press F4 to prompt for customer numbers
(alternatively you can enter a customer number such as 0010100).
- Since the Debugger has detected a change in the CUSTNO variable's value, you are presented with a
dialog advising you of this. Click OK when you wish to dismiss the dialog.

The program stops executing at the line immediately after the statement which caused the change
and is highlighted in the source pane as the current line.

Click on
to indicate that you have completed these steps.