PreviousNextIndex

SET-BREAK( ) method

Sets a breakpoint for a debugging session.

Return type: LOGICAL

Applies to: DEBUGGER system handle

Syntax
SET-BREAK ( [ procedure [ , line-number ] ] ) 

procedure
line-number

If the Debugger is initialized, this method returns TRUE. Otherwise, it returns FALSE with no effect. For more information, see the reference entry for the DEBUGGER system handle.

Note: To use this method, you must have the Application Debugger installed in your OpenEdge environment.

Note that the Debugger sets breakpoints on physical lines—not statements. If you invoke DEBUGGER:SET-BREAK( ) on a line that contains other executable statements, all the other statements on that line execute before the breakpoint occurs on the next executable line. This is true whether the statements appear on the same line before or after the invocation of the SET-BREAK( ) method.

If you invoke DEBUGGER:SET-BREAK ( procedure , line-number ) on the same line that is specified by procedure and line-number, the specified line executes the first time without breaking. The breakpoint occurs only on the second and succeeding executions of the line.

Note: You cannot set a watchpoint programmatically using the DEBUGGER system handle. A watchpoint is a form of breakpoint which tells the Debugger to interrupt program execution when the value of a variable, buffer field, or attribute reference changes.

OpenEdge Release 10.2B
Copyright © 2009 Progress Software Corporation
PreviousNextIndex