Exercise 5.7: Setting breakpoints in PAYROLLG

Before you begin, you must complete Exercise 5.6: Listing call stack entries.

Now you add some breakpoints in PAYROLLG.

To add breakpoints:

  1. Select PAYROLLG in Thread1.
  2. In the source view (also called the iSeries default editor) scroll to line 57.
  3. Double-click the prefix area of line 57.

    A breakpoint icon is added to the prefix area of this line to indicate that a breakpoint is set.

  4. Repeat the above step for line 58.
    Breakpoint added to lines 57 and 58
  5. Right-click in the prefix area of line 87 and click Add Breakpoint on the pop-up menu.
    Breakpoint added to line 87

    To view all breakpoints, select the Breakpoints tab from the top left pane.
    Breakpoints view
    This view shows all breakpoints currently set in your Debug session. This is a convenient place to work with breakpoints. You can remove, disable/enable, add, or edit a breakpoint. These tasks are available from the pop-up menu when you right-click in the view area. Double-click any entry to show the source where the breakpoint is set.

You have added several breakpoints to PAYROLLG and now you are ready to begin Exercise 5.8: Removing a breakpoint in PAYROLLG.