If you want to debug an interactive application, a batch job on
hold, or a job which is set up with a specific application environment, you
should choose to debug the job.
About this task
Other reasons for debugging a specific job include the following:
- You anticipate a problem at a particular point in your program, and you
do not want to step through the program or set breakpoints. In this situation,
you can run your program, and during a program pause shortly before the anticipated
failure (for example, while the program is waiting for keyboard input), you
start debugging the job. You can then provide the input, and debug from that
point on.
- You are developing or maintaining a program that hangs sporadically, and
you want to find out why it is hanging. In this situation, you can debug the
job, and look for infinite loops or other problems that might be causing your
program to hang.