Microsoft KB Archive/34084

From BetaArchive Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Version 3.0 Supports CodeView with EANIM Directive

PSS ID Number: Q34084 Article last modified on 04-21-1993

3.00 | 3.00 MS-DOS | OS/2

The information in this article applies to:
- Microsoft COBOL for MS-DOS and OS/2, version 3.0

Summary: The EANIM directive enables source-level debugging of Microsoft COBOL Version 3.0 programs with Microsoft CodeView. For CodeView support with Microsoft COBOL Version 3.0, proceed as follows: COBOL filename,,filename.LST /ANIM /NOFORM /NOCONFIRM /COPYLIST /EANIM /SOURCE-EXT(LST) LINK filename /CO; CV filename In CodeView, you will see your source-listing file. This file will be used in debugging, the same as in a C or MASM program. A few functions are implemented in such a way that great care is needed when debugging with CodeView. You should avoid these areas for now if you want to use CodeView. These areas include the following: Subscript bound checking (Compile with /NOBOUND) Overlays (Compile with /NOSEG) GO TO DEPENDING (Do not single step this instruction) CodeView support is in addition to the SYMDEB and CodeSmith support, which are supported using the LINK /M/LI options (which place the line-number information into the .MAP file).

More Information: The following is an explanation of the COBOL Version 3.0 compiler directives used in the previous example:

Compiler Directive Explanation
/ANIM Source-level information is needed.
/EANIM Put source-level information in source file.
/NOFORM
/NOCONFIRM Make the listing file consistent.
/COPYLIST
/SOURCE-EXT(LST) Use the .LST file for debugging source.
/CO Put the .OBJ debugging information in the
.EXE for CodeView.

NOTE: CodeView is unable to display COBOL Data types.

Additional reference words: 3.00 Copyright Microsoft Corporation 1993.