The PL/I workstation products are designed to diagnose many of the bugs in your programs at compile time, and provides you with a compiler listing that explains what mistakes you made and where you made them. In addition, you can use compile-time options to make the compiler listing even more useful.
The following compile-time options are useful for debugging your PL/I programs:
You might find the following suboptions for RULES particularly useful for debugging:
For example, consider the program:
program: proc( ax1xcb, ak2xcb ); dcl (ax1xcb, ax2xcb ) pointer; dcl 1 xcb based, 2 xcba13 fixed bin,... ak1xcb->xcba13 = ax2xcb->xcba13;
With RULES(NOLAXDCL) in effect, the two typographical errors above are considered implicit declarations by the compiler and are flagged as errors. For more information on using RULES, see RULES.
For detailed information on using SNAP for debugging, see SNAP dumps for trace information.
For more information on SNAP syntax, see SNAP.