Exercise 5.7: Setting breakpoints in PAYROLLD

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

Now you add some breakpoints in PAYROLLD.

To add breakpoints:

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

    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 206.
    Break point
  5. Repeat the above step for line 218.

    To view all breakpoints, select the Breakpoints tab from the top left pane.
    Breakpoint 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 PAYROLLD and now you are ready to begin Exercise 5.8: Removing a breakpoint in PAYROLLD.