Problem solve Get help with specific problems with your technologies, process and projects.

Using the ILE source level debugger for RPG/400 programs and CL programs

By compiling your RPG/400 programs and CL programs with the right parameters you can use the ILE source level debugger...

on these objects as well as RPGLE and CLLE objects.

For RPG, set the OPTION parameter of CRTRPGPGM to *LSTDBG or *SRCDBG. (*LSTDBG is better because it will include any /COPY source in the debug view.) For CL, set the OPTION parameter of CRTCLPGM to *SRCDBG. Then when you STRDBG for the program make sure you set the OPMSRC parameter to *YES.

I've set up PDM options to do the compiles with the correct parameter selections, and I created a simple CL program and command that does the correct STRDBG based on the attribute of the program.�The CL does a RTVOBJA on the program, and if the object is RPGLE or CLLE it does a simple STRDBG; otherwise it does the STRDBG with OPMSRC(*YES).

This was last published in February 2001

Dig Deeper on RPG iSeries programming

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.