Chapter 4-5: The Debugger Cover Page OptionsConditional Execution of the TRAP Statement

The TRAP Statement


By inserting a TRAP statement in a routine, you are setting a break point that signals APPX to invoke the debugger when the process containing the routine executes. The placement of a TRAP statement is significant because, when the debugger is invoked, the first statement that displays on the debugger screen is the first TRAP statement that executes during the normal execution of a process. You can optionally include additional TRAP statements at other points in a routine. If you insert more than a single TRAP, you are effectively setting a series of break points where processing is interrupted, one break point at a time, by repeatedly selecting the go option. Each selection of the go option moves you to the next break point.

 

APPX Application Design Manual (01/13/03) Cover Page OptionsConditional Execution of the TRAP Statement

© 2003 by APPX Software, Inc. All rights reserved