Previous Topic Next topic Print topic


Referencing Included or Copied Files

Many source programs have the contents of separate files inserted into the program at compilation. Programs written in PL/I, BASIC, C, FORTRAN, or Pascal use an include statement or directive for this purpose; COBOL programs use a COPY statement.

When the debugger encounters one of these statements in a program, you can display the contents of the included file by using Source followed by the filename cited in the INCLUDE directive. The lines in the file will be numbered consecutively from the first line in the file. To return to displaying lines from the source file containing the current environment, simply use the Source command with no arguments.

Support for include file handling has been added for Open PL/I. This applies to include files that contain executable code. The current set of functionality is implemented as follows:

Using the macro preprocessor mfpp with CodeWatch is also allowed. CodeWatch will use the original source file (rather than the expanded preprocessed output of mfpp). Stepping "through" macros works similarly to the include file support described above.

For LPI-BASIC, LPI-COBOL, LPI-FORTRAN, and LPI-Pascal, executable code contained within included files cannot be debugged with CodeWatch.

Previous Topic Next topic Print topic