The runtime system contains a built-in debugger that allows you to view the source code while you are debugging. To prepare to use source debugging, you must compile with one of the compiler options that include the source code in the compiled object file, such as -Ga.
For example:
ccbl -Ga -o myprog myprog.cbl
Where:
-Ga | includes the source code in the compiled object file and enables other helpful debugging features. |
-o | allows you to specify the name of the output file for the object code |
myprog | is the user-specified name of the output file |
myprog.cbl | is the name of the file containing the COBOL source code |