Search code examples
ibm-midrangerpgle

Retrieve source from compiled ILE Program (with DBGVIEW)


Instead of using STRDBG to look at the source, is there an API to retrieve the complete source code from a program compiled with DBGVIEW(*ALL)?
Should I use the debug APIs, or does something simpler exists?


Solution

  • It seems the only way is to use the exported debug C APIs, as described in this document.

    Those C APIs are also exposed through an RPG service program under QSYS/QTEDBGS. This makes it possible to invoke them via JTOpen for example (see ServiceProgramCall).

    enter image description here