ILE Debugger Instructions – for one *MODULE

Step 1 – compile your program. Type in option 14 beside your source member and press F4 to get the following screen:

Create Bound COBOL Program (CRTBNDCBL)
Type choices, press Enter.
Program ...... > CM100C Name, *PGMID
Library ...... > MOOGK Name, *CURLIB
Source file ...... > QCBLSRC Name
Library ...... > MOOGK Name, *LIBL, *CURLIB
Source member ...... > CM100C Name, *PGM
Output ...... *PRINT *PRINT, *NONE
Generation severity level . . . 30 0-30
Text 'description' ...... *SRCMBRTXT
Additional Parameters
Replace program ...... > *NO *YES, *NO
Bottom
F3=Exit F4=Prompt F5=Refresh F10=Additional parameters F12=Cancel
F13=How to use this display F24=More keys

Press F10 for additional parmeters:

Create Bound COBOL Program (CRTBNDCBL)
Type choices, press Enter.
Program ...... > CM100C Name, *PGMID
Library ...... > MOOGK Name, *CURLIB
Source file ...... > QCBLSRC Name
Library ...... > MOOGK Name, *LIBL, *CURLIB
Source member ...... > CM100C Name, *PGM
Output ...... *PRINT *PRINT, *NONE
Generation severity level . . . 30 0-30
Text 'description' ...... *SRCMBRTXT
Additional Parameters
Compiler options ...... *SOURCE *SOURCE, *NOSOURCE, *SRC...
+ for more values
Conversion options ......
+ for more values
More...
F3=Exit F4=Prompt F5=Refresh F12=Cancel F13=How to use this display
F24=More keys

Change Compiler Options to *SOURCE as per above, then press Page Down to get the following screen.

Create Bound COBOL Program (CRTBNDCBL)

Type choices, press Enter.
Message limit:
Number of messages ...... *NOMAX 0-9999, *NOMAX
Message limit severity . . . . 30 0-30
Debug view ...... *SOURCE *STMT, *SOURCE, *LIST...
Optimize level ...... *NONE *NONE, *BASIC, *FULL
FIPS flagging ......
Extended display options . . . . *DFRWRT, *NODFRWRT...
+ for more values
Flagging severity ...... 0 0-99
Replace program ...... > *NO *YES, *NO
User profile ...... *USER *USER, *OWNER
Authority ...... *LIBCRTAUT Name, *LIBCRTAUT, *ALL...
Link literal ...... *PGM *PGM, *PRC
Simple program ...... *YES *YES, *NO
Target release ...... *CURRENT *CURRENT, *PRV, V4R4M0, ...
More...
F3=Exit F4=Prompt F5=Refresh F12=Cancel F13=How to use this display
F24=More keys

Change the Debug View option from *STMT to *SOURCE.

Press Enter to submit the compile.

Use DSPMSG or the DM option in PDM to make sure that your compile was successful. If the compile was successful – proceed with step 2 to run the debugger.

Step 2

From the command line, execute the command, STRDBG and press F4.

Start Debug (STRDBG)
Type choices, press Enter.

Program ...... CM100C Name, *NONE
Library ...... Name, *LIBL, *CURLIB
+ for more values
Default program ...... *PGM Name, *PGM, *NONE
Maximum trace statements . . . . 200 Number
Trace full ...... *STOPTRC *STOPTRC, *WRAP
Update production files . . . . *YES *NO, *YES
OPM source level debug . . . . . *YES *NO, *YES
Service program ...... *NONE Name, *NONE
Library ...... Name, *LIBL, *CURLIB
+ for more values
More...
F3=Exit F4=Prompt F5=Refresh F10=Additional parameters F12=Cancel
F13=How to use this display F24=More keys

Change the program name from *NONE to the program that you are debugging. Chagne the Update production files and OPM source level debug options from *NO to *YES. Press Enter.

Step 3

You will be presented with a view of your program in debug view. Press F10. The command line will be displayed. Call your program. The view of your program in debug view will be returned and you are ready to debug your program.

Step 4

DON’T FORGET TO TYPE ENDDBG when you are finished!