Before you can debug
CICS®
applications
using a workstation, your system programmer must prepare your CICS
region for debugging.
About this task
You must complete the following tasks:
Procedure
- Install a suitable debugger client in your workstation. You can use the following product as your debugger client:
- WebSphere®
Studio Enterprise Developer
- WebSphere
Studio Application Developer
The documentation for these products contains the information
you need to install and use them.
- Create one or more
debugging profiles.
A debugging profile specifies which programs will run under
the debugger's control.
Note: A debugging profile is not the same
thing as a JVM profile. To debug a
Java™
application, you need both profiles.
- If you want to debug programs that are written in COBOL,
PL/I, C or C++; or Language Environment-enabled Assembler subroutines,
consider how you want to conduct your debug session, and compile
your
programs with the appropriate options. For more information, see
Debug Tool for z/OS User's Guide.
- If you want to debug a Java program, you must ensure that
it runs in a Java virtual machine (JVM) that is enabled for
debugging.
To do this:
- Create a JVM profile with parameters which enable the JVM for
debugging. See
Debugging a Java application
for more
information.
- Specify the JVM profile when you create a debugging
profile for the Java program. If you do not specify the JVM profile,
the JVM uses the profile specified in the PROGRAM definition.
- Start the debugger client on your workstation.
- If you are using WebSphere Studio as your debugger, set
at least one breakpoint in your program.
- Activate the debugging profiles that define the program
instances that you want to debug. When you activate profiles for
compiled
language programs, you must define debugging options that specify
the attributes of the debugging session that is started when the
program
runs.
Results
When you have completed all these steps, the programs that
you have selected in the final step will run under the control of
a debugger.