C.2 debugging tools for compaq cobol programs – Compaq COBOL AAQ2G1FTK User Manual

Page 566

Advertising
background image

Programming Productivity Tools
C.1 Compaq FUSE—an Integrated Development Environment (Tru64 UNIX)

Create and use nested (recursive) makefiles.

Use default configurations to automatically set up tools for a new session.

Customize your best tools configuration.

Create custom language templates for use with the Compaq FUSE editor.

Specify pre- and postprocessing scripts for code management operations.

Tailor your work environment, selecting your editor and debugger, as well as
personal favorite (and meaningful) colors and fonts, for example.

Save your work context, and reestablish that work context from session to
session.

Automatically start and configure your chosen development productivity tools.

See the Compaq FUSE documentation for additional, detailed information.

Technical Note

With certain COBOL programs in the Compaq FUSE environment a problem will
manifest itself by displaying the wrong file in the Compaq FUSE Editor tool for
certain COBOL items which are clicked on from the Cross-Referencer tool. This
can only happen for COBOL programs with successive COPY statements where
there are no intervening data item references or declarations. To work around
this problem, insert an extra declaration between successive COPY statements in
the DATA DIVISION as follows:

COPY "LIBRARY-1".

01 EXTRA-ITEM PIC X.

COPY "LIBRARY-2".

You should also insert an extra reference to a data item between successive COPY
statements in the PROCEDURE DIVISION as follows:

DISPLAY "TEST 7".
COPY "LIBRARY-1".
move 1 to extra-item.
COPY "LIBRARY-2".

C.2 Debugging Tools for Compaq COBOL Programs

This appendix includes representative debugging sessions that demonstrate
debugger features for both the OpenVMS Debugger and the Tru64 UNIX Ladebug
Debugger. These tools are source-level, symbolic debuggers that support Compaq
COBOL data types and use.

Both the OpenVMS Debugger and the Tru64 UNIX Ladebug Debugger let you:

Control the execution of individual source lines in a program.

Set stops (breakpoints) at specific source lines or under various conditions.

Change the value of variables within the debugging environment.

Refer to program locations by their symbolic names, using the debugger’s
knowledge of the Compaq COBOL language to determine the proper scoping
rules and how the values should be evaluated and displayed.

Print the values of variables and set a trace (tracepoint) to notify you when
the value of a variable changes.

C–2 Programming Productivity Tools

Advertising