Exercise 5.9: Monitoring variables in PAYROLLD

Before you begin, you must complete Exercise 5.8: Removing a breakpoint in PAYROLLD.

Now lets monitor variables and change them in PAYROLLD.

To monitor variables:

  1. In the source view, double-click the variable EMPAPL on line 201.
  2. Right-click the variable.
  3. Click Monitor Expression on the pop-up menu.
    Monitor expression
  4. Click the Monitors tab in the upper right pane.

    The variable appears in the Monitors view. Its value is blank because you did not select the Employee Master Maintenance option.

  5. In the same way add the variables PRJAPL on line 206 and RSNAPL on line 244 to the monitor.

    Variable PRJAPL equals X because you did select the Project Master Maintenance option.

  6. In the Monitors view, double-click the variable RSNAPL.

    The value changes into an entry field.

  7. In the entry field, type in the new value X for the variable.
    Monitor Expression view
  8. Press Enter.

    The variable is successfully changed.

You have monitored several variables in PAYROLLD and now you are ready to begin Exercise 5.10: Adding a memory monitor.