DEBUG

DEBUG specifies whether the COBOL debugging sections specified by the USE FOR DEBUGGING declarative are active.

Read syntax diagramSkip visual syntax diagram
DEBUG option syntax

   .-NODEBUG-.   
>>-+---------+-------------------------------------------------><
   '-DEBUG---'   

Default is: NODEBUG

DEBUG
Activates the debugging sections
NODEBUG
Suppresses the debugging sections

Performance consideration: To improve performance, use this option only while debugging.