The compiler option -debug
can be used during the development
of your programs. It enables all run-time error checking, such as
subscript boundary checks and numeric data checks, and displays
run-time errors with source locations.
The compiler option -g
includes line directives in the output.
This helps debugging your COBOL programs using GDB, but this feature
is not complete and not very useful yet.