Use the BREAK and CLEAR debug commands

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

To set a conditional breakpoint by using the BREAK debug command, type the following on the debug command line:

BREAK line-number WHEN expression

Line-number is the line number in the currently displayed view of the module object on which you want to set a breakpoint. expression is the conditional expression that is evaluated when the breakpoint is encountered. The relational operators supported for conditional breakpoints are <, >, =, <=, >=, and <> (not equal).

In non-numeric conditional breakpoint expressions, the shorter expression is implicitly padded with blanks before the comparison is made. This implicit padding occurs before any National Language Sort Sequence (NLSS) translation.

To remove a conditional breakpoint by using the CLEAR debug command, type the following on the debug command line:

CLEAR line-number

Line-number is number in the currently displayed view of the module object from which you want to remove a breakpoint.

In the statement view, no line numbers are displayed. To set conditional breakpoints in the statement view, type the following on the debug command line:

BREAK procedure-name/statement-name WHEN expression

Procedure-name is the name of your CL module. Statement-number(from the compiler listing) is the statement number where you want to stop.

Related concepts
Debug commands
National Language Sort Sequence (NLSS)