The ILE Source

The ILE source is used to detect errors in and eliminate errors from program objects and service programs. Using debug commands with any ILE program that contains debug data you can:
  • View the program source or change the debug view
  • Set and remove breakpoints and watch conditions
  • Step through a specified number of statements
  • Display or change the value of fields, structures, and arrays
  • Equate a shorthand name with a field, expression, or debug command

Before you can use the source , you must select a debug view when you create a module object or program object using CRTRPGMOD or CRTBNDRPG. After starting the you can set breakpoints and then call the program.

When a program stops because of a breakpoint or a step command, the pertinent module object's view is shown on the display at the point where the program stopped. At this point you can perform other actions such as displaying or changing field values.
Note: If your program has been optimized, you can still display fields, but their values may not be reliable. To ensure that the content of fields or data structures contain their correct (current) values, specify the NOOPT keyword on the appropriate Definition specification. To change the optimization level, see Changing the Optimization Level.