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 first published in February 2001

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
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
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.