Using the debugger

COBOL for AIX provides a debugger. Use the TEST compiler option to prepare your COBOL program so that you can step through the executable program with the debugger.

Alternatively, you can use the -g option of the cob2 command (or one of its variants) to prepare your program to use the debugger.

For applications that have more than 65,535 lines, you must also compile using the -q64 option.

To invoke the debugger to examine an executable file, issue the command idebug filename, where filename is the name of your program. If the program was compiled with the -g option, the debugger will show symbolic and line-number information.

related references  
cob2, cob2_j, and cob2_r options
  
TEST