Use the DEBUGGER system handle in stand-alone mode
- Last Updated: March 30, 2020
- 1 minute read
- OpenEdge
- Version 12.2
- Documentation
To start the Debugger from an ABL procedure while blocking the invoking procedure:
-
Optionally, define a logical variable you can use to assign the return
value for the
DEBUGGERsystem handle method. -
Add a
DEBUGGERsystem handle statement that invokes theDEBUG( )method at the point where you want to start the Debugger.
In the following example, the procedure presents four execution options. The first
three options invoke procedures. The fourth option invokes the
DEBUG( )
method and blocks at the subsequent statement (line 33) while the Debugger runs, as
shown:
|
When the Debugger starts, you can open a procedure using and then run the procedure using .
As a result, while the invoking procedure waits on the blocked statement, the Debugger runs on its own, allowing you to control any other procedure that you start from it.
When you exit the Debugger, it returns control to the invoking procedure, which continues execution from the next statement (line 33 in the example). In stand-alone mode, you cannot otherwise access the invoking procedure until the Debugger returns control.