A root source view contains the source statements of the source member.
To use the root source view with the Integrated Language Environment® (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 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.