CL Programming


Testing Functions

The system includes functions that let a programmer observe operations performed as a program runs. These functions can be used to locate operations that are not performing as intended. Testing functions can be used in either batch or interactive jobs from a work station. In either case, the program being observed must be in the testing environment, called debug mode.

The testing functions narrow the search for errors that are difficult to find in the procedure's source statements. Often, an error is apparent only because the output produced is not what is expected. To find those errors, you need to be able to stop the program at a given point (called a breakpoint) and examine variable information in the program to see if it is correct. You might want to make changes to those variables before letting the program continue running.

You do not need to know machine language instructions, nor is there a need to include special instructions in the program to use the testing functions. The OS/400 testing functions lets you:

See either Debugging ILE Programs, for more information on debugging Integrated Language Environment(R) (ILE) programs or Debugging OPM Programs for more information on debugging OPM programs.

See the appropriate ILE guide for debugging information with other ILE languages.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]