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

Debugging an RPGLE program when its source does not exist

How can I debug an RPGLE program when its source does not exist. The case is that we have a development machine where we keep the sources, do the tests and a production machine where we keep only compiled programs not sources. But sometimes we need to debug on this production machine. Any ideas?


Great question. You had me going back to do some testing before I answered. The good news is that you can do what you need to do. All you have to do is when compiling your RPGIV program you want to debug, set the compile option of DBGVIEW to *LIST. What this does is generates the listing view within the compiled object. Then when you STRDBG, the listing will show and you can set break points. I would refrain from doing this any more then you need to. The program I tested this with has no F specs, 1 D spec and 7 C specs. The size of the compiled object increased 37%.


Dig Deeper on RPG iSeries programming

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchDataCenter

Close