DEBUG
- Default
- OFF
- Recommended
- OFF
- Considerations
- The DEBUG option activates the COBOL batch debugging features
specified by the USE FOR DEBUGGING declarative. This might add some
additional overhead to process the debugging statements. This option
has an effect only on a program that has the USE FOR DEBUGGING declarative. Performance considerations using DEBUG:
- When not using the USE FOR DEBUGGING declarative, on the average, DEBUG was equivalent to NODEBUG.
- When using the USE FOR DEBUGGING declarative, a test program measured was 900% slower when using DEBUG compared to using NODEBUG.
Note: The program in this test had WITH DEBUGGING MODE clause on the SOURCE-COMPUTER paragraph, and contained a USE FOR DEBUGGING ON a paragraph name in the procedure division. This paragraph is empty (that is containing just an EXIT statement), and is performed many times in a loop. The paragraph in the declarative section is also empty (just an EXIT statement). The purpose is to give an indication on the overhead due to transferring of control to the USE FOR DEBUGGING declarative.
related references
DEBUG (COBOL only) (z/OS Language Environment Programming Reference)
DEBUG (COBOL only) (z/OS Language Environment Customization)
DEBUG (COBOL only) (z/OS Language Environment Programming Reference)
DEBUG (COBOL only) (z/OS Language Environment Customization)