You can also use COBOL's Debug module.
It's either SOURCE COMPUTER. HP3000 WITH DEBUGGING MODE.
or it's OBJECT COMPUTER. HP3000 WITH DEBUGGING MODE.
Then, enter a debugging section. If you include a 'D' in column 7 of all
debugging lines, then taking the WITH clause out will cause the 'D' to
be interpreted as '*'.
DEBUG SECTION.
USE FOR DEBUGGING ON ALL PROCEDURES.
DEBUG-PARA.
MOVE ....
DISPLAY DEBUG-LINE.
DEBUG-LINE is predefined and includes fields telling what para name was
crossed and how it was reached (Fall-thru, Perform,).