Try OpenEdge Now
skip to main content
Developing AppServer Applications
Debugging : Using remote debugging : Initiating the Debugger from within an AppServer session : Establishing an initial breakpoint
 
Establishing an initial breakpoint
With remote debugging, you must programmatically set an initial breakpoint in the ABL code by using the SET-BREAK( ) method of the DEBUGGER handle. For information on the DEBUGGER handle, see OpenEdge Development: Debugging and Troubleshooting and OpenEdge Development: ABL Reference.
The following example shows how to use the INITIATE( ) and SET-BREAK( ) methods for the DEBUGGER handle:
DEFINE VARIABLE lReturn AS LOGICAL NO-UNDO.

lReturn = DEBUGGER:INITIATE().
/* SET-BREAK( ) with no parameters breaks at next line */
lReturn = DEBUGGER:SET-BREAK().
RETURN. /* Debugger gets control at this line */