Top
NetCOBOL V11.0 Debugging Guide
FUJITSU Software

2.2.2 Compiling for Debugging

To prepare a program for debugging, specify the compiler option TEST when compiling the COBOL source program. When the compiler option TEST is specified, the compiler writes the information needed to carry out debugging to an object file and creates a debugging information file.

The file name used for the debugging information file is the name of the COBOL source program with the extension SVD added.

Programs to be debugged can be easily created using the project management function. For more information, refer to "Creating a Debug Module" in the "NetCOBOL User's Guide".

COBOL source programs compiled with the TEST option specified can be debugged with the debugger functions. COBOL source programs compiled without the TEST option specified or non-COBOL programs can be run under the debugger but cannot be debugged. COBOL source programs compiled with both the TEST and OPTIMIZE options specified cannot be debugged, since a debugging information file is not available. Refer to "TEST (Whether the interactive debugger and the COBOL Error Report should be used)" in the "NetCOBOL User's Guide".