Use a statement view

A statement view does not contain any CL source data. However, breakpoints can be added by using procedure names and statement numbers found in the compiler listing.

To debug an ILE CL module object using a statement view, you need a copy of the compiler listing.

Note: No data is shown in the Display Module Source display when a statement view is used to debug an ILE CL module object.

To debug an ILE CL module object by using a statement view, use the *STMT, *SOURCE, *LIST, or *ALL option on the DBGVIEW parameter for either the Create CL Module (CRTCLMOD) or Create Bound CL (CRTBNDCL) commands when you create the module.

One way to create a statement view is as follows:

CRTCLMOD
MODULE(MYLIB/MYPGM) SRCFILE(MYLIB/QLSRC) SRCMBR(MYPGM) TEXT('CL Program')
DBGVIEW(*STMT)
Related information
Create Bound CL Program (CRTBNDCL) command
Create CL Module (CRTCLMOD) command