You can use breakpoints to halt a program object or service program at a specific point when it is running. An unconditional breakpoint stops the program object or service program at a specific statement. A conditional breakpoint stops the program object or service program when a specific condition at a specific statement is met.
There are two types of breakpoints: job and thread. Each thread in a threaded application may have it's own thread breakpoint at the same position at the same time. Both a job breakpoint and a thread breakpoint can be unconditional or conditional. In general, there is one set of debug commands and Function keys for job breakpoints and another for thread breakpoints. For the rest of this section on breakpoints, the word breakpoint refers to both job and thread, unless specifically mentioned otherwise.
When the program object or service program stops, the Display Module Source display is shown. The appropriate module object is shown with the source positioned at the line where the breakpoint occurred. This line is highlighted. At this point, you can evaluate variables, set more breakpoints, and run any of the debug commands.
You should know the following characteristics about breakpoints before using them:
These functions include:
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.