Debugging allows you to detect, diagnose, and eliminate errors in a program.
Use WebSphere Development Studio Client for iSeries. This is the recommended method and documentation about debugging ILE COBOL programs and appears in that product's online help.
With the integrated iSeries debugger you can debug your program running on the iSeries server from a graphical user interface on your workstation. You can also set breakpoints directly in your source before running the debugger. The integrated iSeries debugger client user interface also enables you to control program execution. For example, you can run your program, set line, watch, and service entry point breakpoints, step through program instructions, examine variables, and examine the call stack. You can also debug multiple applications, even if they are written in different languages, from a single debugger window. Each session you debug is listed separately in the Debug view.
You can also debug your OPM and ILE COBOL programs using the ILE source debugger. This chapter describes how to use the ILE source debugger to:
While debugging and testing your programs, ensure that your library list is changed to direct the programs to a test library containing test data so that any existing real data is not affected.
You can prevent database files in production libraries from being modified unintentionally by using one of the following CL commands:
SET UPDPROD NO
which can be abbreviated as
SET U N
See the chapter on debugging in the ILE Concepts book for more information on the ILE source debugger (including authority required to debug a program object or a service program and the affects of optimization levels).
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.