Debugging Application Without Source Code
As discussed in Preparing a Program for Execution for Execution, the typical Code Debug CICS test begins by processing the application program with the BMC language processor. This process creates an online source listing that allows you to interactively step through your source code as it executes. However, if this source listing is not available, you can still test your programs with Code Debug CICS using a form of testing called Sourceless debugging.
This section demonstrates using the PSEUDOSOURCE sourceless debugging method. You can still use Code Debug CICS to set breakpoints, intercept abends, step through instructions, modify data, and generally test your program.
The PSEUDOSOURCE command allows you to map a program or CSECT to create an Assembler pseudo-listing. This pseudo-listing displays the underlying instructions in memory as if it was an Assembler program processed by the BMC Assembler Language Processor. While you need some experience in debugging assembler language, the capability to debug a program or CSECT from an Assembler program provides you with a much richer set of commands. It is important to understand that debugging a C program using PSEUDOSOURCE is not a trivial undertaking. Having a compiler listing can make the task easier, but is not a requirement.
The following scenario is based on the application transaction XCCC. This is the sample payroll transaction shipped with Code Debug CICS that executes the C program CWDEMC. Since sourceless debugging mandates that no source listing exists for the program in question, you may wish to use a program of your own.
This section provides information about the following topics: