420 Using IBM Application Development Tools for z/OS and OS/390
21.1 Compiling for DB2 and Debug Tool
There is one basic issue when compiling DB2 programs for use with Debug Tool. This is the
fact that the DB2 pre-compiler will expand your source code, and then the debug information
will be generated based on that expansion. There are several solutions to this problem:
1. As of DB2 V7, the DB2 product has provided utilities for compilers to use to do the DB2
expansion on the fly. When the compiler front ends do this expansion, you do not need to
keep track of any extra code, and the code you are looking at when debugging matches
the source files you normally work with. Look for options named DB2 or SQL on your
compilers.
2. If you do not have ...