Use a root source view

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.

Note: The module object is created by using references to locations of the source statements in the root source member instead of copying the source statements into the view. Therefore, you should not modify, rename, or move root source members between the creation of the module and the debugging of the module created from these members.

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 Create CL Module (CRTCLMOD) or Create Bound CL (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.

Related information
Create Bound CL Program (CRTBNDCL) command
Create CL Module (CRTCLMOD) command