10.07.2015 Views

Programming Guide - Actian

Programming Guide - Actian

Programming Guide - Actian

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

How Debugging an Application WorksWhen you step out of an event block, control returns to the application untilanother event occurs for which there is an event block. At this point, you mayneed to interact with the application to cause an event to happen. However,having stepped out of an event block, the Debugger stops at the firststatement of the next block to be executed.If you step into a statement that opens a pop-up dialog, the application hascontrol until you close the pop-up.If the next statement calls a frame or procedure, the Step button steps acrossthe call; that is, the application receives control until the call completes.Control returns to the statement immediately following the call. If anintervening break condition is encountered before the call completes, theDebugger gains control. When the call does complete, however, the Debuggerstops execution at the statement following the call statement.Finally, if the statement is a gotoframe statement, clicking Step moves you tothe script for the frame invoked by the gotoframe statement.Step Into ButtonThe Step Into button behaves like the Step button in all cases except thefollowing:• When the next statement to be executed is a callframe statement.The Step Into button moves you into the script for the frame and stops atthe first statement in the initialize block. If the called frame has noinitialize block, there is no statement to execute and you must click Step,Step Into, or Continue to display the frame and continue execution.• When the next statement is a callproc statement.The Step Into button moves you to the script for the called procedure andstops at the first executable statement.• When the next statement invokes a method of a user class.The Step Into button moves you into the script for the method and stopsat the first executable statement.• When the next statement is openframe.If a new thread is created, a new Debugger window is opened. TheDebugger stops execution at the first statement of the initialize block ofthe new frame. If there is no initialize block, you must click Step, StepInto, or Continue to display the frame and continue execution.Debugging Your Application 471

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!