Debugging an ILE RPG module within a program

10 pts.
Tags:
Debugging
RPG
RPG ILE
I have a program containing 3 modules. The module I need to debug is not displaying the source. How do I debug this module?

Answer Wiki

Thanks. We'll let you know when a new response is added.

When using the graphical debugger, simply “Set service entry point”. When the program is run, the debugger will open. You can “Step into” the modules. If the source is avaialable, you should be able to see it.

Just ReCompile your Module (and Pgm) using option DBGVIEW(*SOURCE) and you’ll get it.

Regards.
T.

===========================================================

If DBGVIEW(*SOURCE) or DBGVIEW(*LIST) wasn’t specified when that module was compile, then the only possible debugging would be for DBGVIEW(*STMT) which essentially refers to MI-level statements(adjust for ILE compilers). Or if all debug info was removed after compilation, then no debugging is possible at all.

For in-house programming, there should possibly never be a module that is compiled with anything other than DBGVIEW(*ALL).

For this case, it’s probable that the module should be recompiled with DBGVIEW(*ALL) specified. Then use UPDPGM to update the module in the program.

Tom
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

ile novice!

1) First ensure whether your Module is compiled with option “DBGVIEW(*SOURCE)”.
2) If not then compile the module with opt-15 it with “DBGVIEW(*SOURCE)”.
Once done
3) Compile your entire RPGILE pgm with CRTPGM command & mentioning all the modules(your module & the other 2 modules)
4) while mentioning the above mention your module-name against PEP(Program Entry Procedure); this is what Tom says as the “Service Entry point”.
5) Once Everything is compiled properly; you will see the msg in the bottom of the session as the “Program created”.
6)Now you should be fine to debug your module using STRDBG.

Thanks,
Svanky

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

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

Forgot Password

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

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

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

Thanks! We'll email you when relevant content is added and updated.

Following