Top
NetCOBOL V11.0 Debugging Guide
FUJITSU Software

3.1 Overview

You can use the COBOL Debugger to debug applications that contain a mix of COBOL and PowerCOBOL code. This chapter explains how to use the COBOL debugger to debug such applications and covers some common situations you may encounter.

You prepare PowerCOBOL and COBOL code for debugging as if you were working solely with one type of code. You bring up the main program under the COBOL debugger and debugging proceeds as normal.

There is one difference in that the COBOL Debugger shows you the full, expanded, PowerCOBOL code. The debugger displays the main event loop, which PowerCOBOL usually hides, and some statements that you code within PowerCOBOL are expanded into MOVEs and CALLs to subroutines. Once you understand this additional code, you are essentially debugging a COBOL application.

Note

When the main program is a PowerCOBOL sheet, you can use the PowerCOBOL Debug function to debug the PowerCOBOL code. This has the advantage that you do not see the expanded PowerCOBOL code, but the disadvantage that you cannot view and debug the COBOL code. Check the PowerCOBOL documentation for information about the PowerCOBOL Debug function.