IBM AS/400 Frozen Dessert Maker User Manual


 
Adding/Removing Programs from a Debug Session
Example of Adding a Service Program to a Debug Session
In this example you add the service program CVTTOHEX to the debug session
which already previously started. (See “Sample Service Program” on page 94 for a
discussion of the service program).
1. If the current display is
not
the Display Module Source display, type:
DSPMODSRC
The Display Module Source display appears.
2. Press F14 (Work with module list) to show the Work with Module List display as
shown in Figure 76.
3. To add service program CVTTOHEX, on the first line of the display, type: 1
(Add program), CVTTOHEX for the
Program/module
field, MYLIB for the
Library
field. Change the default program type from *PGM to *SRVPGM and press
Enter.
4. Press F12 (Cancel) to return to the Display Module Source display.
Work with Module List
System: AS400S1
Type options, press enter.
1=Add program 4=Remove program 5=Display module source
8=Work with module breakpoints
Opt Program/module Library Type
1 cvttohex mylib *SRVPGM
RPGPGM MYLIB *PGM
DEBUGEX MYLIB *PGM
DBGEX *MODULE Selected
CPROC *MODULE
Bottom
Command
===> ________________________________________________________________________
F3=Exit F4=Prompt F5=Refresh F9=Retrieve F12=Cancel
Figure 76. Adding an ILE Service Program to a Debug Session
Example of Removing ILE Programs from a Debug Session
In this example you remove the ILE program CVTHEXPGM and the service
program CVTTOHEX from a debug session.
1. If the current display is
not
the Display Module Source display, type:
DSPMODSRC
The Display Module Source display appears.
2. Press F14 (Work with module list) to show the Work with Module List display as
shown in Figure 77 on page 174.
3. On this display type 4 (Remove program) on the line next to CVTHEXPGM and
CVTTOHEX, and press Enter.
4. Press F12 (Cancel) to return to the Display Module Source display.
Chapter 11. Debugging Programs 173