IBM AS/400 Frozen Dessert Maker User Manual


 
Setting and Removing Breakpoints
display. A list of options appear which allow you to set or remove breakpoints. If
you select 4 (Clear), a job breakpoint is removed from the line.
An alternate method of setting and removing unconditional job breakpoints is to use
the BREAK and CLEAR debug commands. To set an unconditional job breakpoint
using the BREAK debug command, type:
BREAK line-number
on the debug command line. The variable
line-number
is the line number in the
currently displayed view of the module object on which you want to set a break-
point.
To remove an unconditional job breakpoint using the CLEAR debug command,
type:
CLEAR line-number
on the debug command line. The variable
line-number
is the line number in the
currently displayed view of the module object from which you want to remove a
breakpoint. When a job breakpoint is cleared, it is also cleared for all threads.
Example of Setting an Unconditional Job Breakpoint
In this example you set an unconditional job breakpoint using F6 (Add/Clear break-
point). The breakpoint is to be set on the first runnable Calculation specification so
that the various fields and data structures can be displayed.
1. To work with a module type DSPMODSRC and press Enter. The Display Module
Source display is shown.
2. If you want to set the job breakpoint in the module shown, continue with step 3.
If you want to set a job breakpoint in a different module, type:
DISPLAY MODULE module-name
on the debug command line where
module-name
is the name of the module
that you want to display.
3. To set an unconditional breakpoint on the first Calculation specification, place
the cursor on line 88.
4. Press F6 (Add/Clear breakpoint). If there is no breakpoint on the line 88, then
an unconditional breakpoint is set on that line, as shown in Figure 81 on
page 180. If there is a breakpoint on the line, it is removed.
Note: Because we want the breakpoint on the
first
Calculation specification,
we could have placed the cursor on any line before the start of the cal-
culation specifications and the breakpoint would still have been placed
on line 88, since it is the first runnable statement.
Chapter 11. Debugging Programs 179