|
Shooting Bugs
|
Cobol
With the latest versions of Debug Tool, if you compile with NOOPTIMIZE, you can still
invoke Debug Tool dynamically even with TEST(NONE,...) using dynamic hook insertion.
Use the NOSYM suboption of TEST to include statement numbers in CEEDUMPs.
Use the SYM suboption to include program variable values.
Language Environment Services
- CEE3DMP: produce a formatted dump
- CEETEST: invoke Debug Tool
PL/I
You can use condition prefixes such as SUBSCRIPTRANGE or STRINGRANGE to detect possible
incorrect use of subscripts or strings. The GOSTMT compiler option makes statement numbers available in the traceback report in CEEDUMP.
C
The GONUMBER compiler option generates statement numbers in the traceback report. The
CHECKOUT compiler option can be used to provide additional compile-time diagnostic
information. The SYM suboption of TEST can be used to include program variable values
in a CEEDUMP.
General Strategies
- Check for successful completion of function calls
- Insert additional displays for strategic program variable values to aid in tracing program logic flow
For More Information