IBM AS/400 Frozen Dessert Maker User Manual


 
Setting and Removing Breakpoints
Display Module Source
..............................................................................
: Select View :
: :
: Current View . . . : ILE RPG Copy View :
: :
: Type option, press Enter. :
: 1=Select :
: :
: Opt View :
: 1 ILE RPG Listing View :
: ILE RPG Source View :
: ILE RPG Copy View :
: :
: Bottom :
: F12=Cancel :
: :
:............................................................................:
More...
Debug . . . _________________________________________________________________
_______________________________________________________________________________
F3=End program F6=Add/Clear breakpoint F10=Step F11=Display variable
F12=Resume F17=Watch variable F18=Work with watch F24=More keys
Figure 80. Changing a View of a Module
The current view is listed at the top of the window, and the other views that are
available are shown below. Each module in a program can have a different set
of views available, depending on the debug options used to create it.
Note: If a module is created with DBGVIEW(*ALL), the Select View window
will show three views available: root source, COPY, and listing. If the
module has no /COPY members, then the COPY view is identical to the
root source view.
3. Type a 1 next to the listing view, and press Enter. The Display Module Source
display appears showing the module with a listing view.
Setting and Removing Breakpoints
You can use breakpoints to halt a program object at a specific point when it is
running. An unconditional breakpoint stops the program object at a specific state-
ment. A conditional breakpoint stops the program object when a specific condi-
tion at a specific statement is met.
There are two types of breakpoints: job and thread. Each thread in a threaded
application may have it's own thread breakpoint at the same position at the same
time. Both job and thread breakpoints can be unconditional or conditional. In
general, there is one set of debug commands and Function keys for job breakpoints
and another for thread breakpoints. For the rest of this section on breakpoints, the
word breakpoint refers to both job and thread, unless specifically mentioned other-
wise.
| Note: Breakpoints are automatically generated for input and output specifications
| if the default OPTION(*DEBUGIO) is specified. If you do not want to gen-
| erate breakpoints, specify OPTION(*NODEBUGIO).
You set the breakpoints prior to running the program. When the program object
stops, the Display Module Source display is shown. The appropriate module object
Chapter 11. Debugging Programs 177