Exercise 5.10: Adding a memory monitor

Before you begin, you must complete Exercise 5.9: Monitoring variables in PAYROLLG.

Adding a memory monitor for a variable allows you to view the memory starting with the address where the variable is located. The memory is displayed in hexadecimal and text format.

To add a memory monitor:

  1. In the Source view, double-click the variable ERR in line 33.
  2. Right-click and select Monitor Storage > Memory on the pop-up menu.
    Monitor Memory

    A new page is added to the Memory view. The tab shows the name of the variable.
    Change memory monitor

  3. Use the scroll bar on the right of the Memory view to scroll down.

    You can see the current content of the memory.

  4. Right-click in the view area.
  5. Click Reset to Base Address on the pop-up menu to return to the starting address.
  6. Click the X on the Memory title bar to remove the Memory monitor.
    Remove memory monitor

You have added a memory monitor for the variable ERR and now you are ready to begin Exercise 5.11: Setting watch breakpoints.