Before you can use the ILE source debugger, you must use either the CRTCLMOD or CRTBNDCL command and specify the DBGVIEW option.
For each ILE CL module object that you want to debug, you can create one of three views:
A root source view contains the source statements of the source member.
To use the root source view with the ILE source debugger, the ILE CL compiler creates the root source view while the module object (*MODULE) is being created.
To debug an ILE CL module object by using a root source view, use the *SOURCE or *ALL option on the DBGVIEW parameter for either the CRTCLMOD or CRTBNDCL commands.
One way to create a root source view, is as follows:
CRTCLMOD MODULE(MYLIB/MYPGM) SRCFILE(MYLIB/QCLLESRC) SRCMBR(MYPGM) TEXT('CL Program') DBGVIEW(*SOURCE)
The Create CL Module (CRTCLMOD) command with *SOURCE for the DBGVIEW parameter creates a root source view for module object MYPGM.
A listing view is similar to the source code portion of the compile listing or spool file produced by the ILE CL compiler.
To debug an ILE CL module object by using a listing view, use the *LIST or *ALL option on the DBGVIEW parameter for either the CRTCLMOD or CRTBNDCL commands when you create the module.
One way to create a listing view is as follows:
CRTCLMOD MODULE(MYLIB/MYPGM) SRCFILE(MYLIB/QCLLESRC) SRCMBR(MYPGM) TEXT('CL Program') DBGVIEW(*LIST)
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.
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 CRTCLMOD or 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)
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.