You can use Debug Tool to debug your Enterprise COBOL programs. Use the TEST compiler option to prepare your COBOL program so that you can step through the executable program with the debugger.
For remote debugging, the Debug Perspective of Rational Developer for System z provides the client graphical user interface to the debugging information provided by the Debug Tool engine running under z/OS or UNIX.
You can specify the TEST suboption SEPARATE to have the symbolic information tables for Debug Tool generated in a data set that is separate from your object module. Also, you can enable your COBOL program for debugging using overlay hooks (production debugging), rather than compiled-in hooks, by compiling with the TEST(NOHOOK,. . .) option. (Compiled-in hooks cause some performance degradation even when the runtime TEST option is off.)
Specify the NOOPTIMIZE and TEST(HOOK,. . .) compiler options to get the most debugging function.
For details about which compiler options to use for maximum debugging capability versus best performance, see the related reference about the TEST compiler option.
related tasks
Defining the debug data set (SYSDEBUG)
Debug Tool User's Guide (Preparing your program for debugging)
related references
TEST