ILE COBOL Programmer's Guide

Setting and Removing Unconditional Job Breakpoints

You can set or remove an unconditional job breakpoint by using:

The simplest way to set and remove an unconditional job breakpoint is to use F6 (Add/Clear breakpoint) from the Display Module Source display.

To set an unconditional job breakpoint using F6 (Add/Clear breakpoint), place your cursor on the line to which you want to add the breakpoint and press F6 (Add/Clear Breakpoint). An unconditional job breakpoint is set on the line.

To remove an unconditional job breakpoint using F6 (Add/Clear breakpoint), place your cursor on the line from which you want to remove the job breakpoint and press F6 (Add/Clear Breakpoint). The job breakpoint is removed from the line.

Repeat the previous steps for each unconditional job breakpoint you want to set.

If the line on which you want to set a job breakpoint has multiple statements, pressing F6 (Add/Clear Breakpoint) will set the job breakpoint at the first statement on the line.

Note:
If the line on which you want to set a job breakpoint is not a runnable statement, the job breakpoint will be set at the next runnable statement.

To remove an unconditional breakpoint using F13 (Work with module breakpoints), press F13 (Work with module breakpoints) from the Display Module Source display. A list of options appear which allow you to set or remove breakpoints. If you select 4 (Clear), a job breakpoint is removed from the line.

After the breakpoints are set, press F3 (End Program) to leave the Display Module Source display. You can also use F21 (Command Line) from the Display Module Source display to call the program from a command line.

Call the program object. When a breakpoint is reached, the program object or service program stops and the Display Module Source display is shown again. At this point, you can evaluate variables, set more breakpoints, and run any of the debug commands.

An alternate method of setting and removing unconditional job breakpoints is to use the BREAK and CLEAR debug commands.

To set an unconditional job breakpoint using the BREAK debug command, type:

BREAK line-number

on the debug command line. line-number is the number in the currently displayed view of the module object on which you want to set a breakpoint.

If the line on which you want to set a breakpoint has multiple statements, the BREAK debug command will set the breakpoint at the first statement on the line.

To remove an unconditional job breakpoint using the CLEAR debug command, type:

CLEAR line-number

on the debug command line. line-number is the line number in the currently displayed view of the module object from which you want to remove a breakpoint. When a job breakpoint is cleared, it is cleared for all threads.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]