DebugBreak

Description

Suspends execution and opens the Debug window. This function is for use at design time only.

Syntax

DebugBreak ( )

Returns

None

Usage

Insert a call to the DebugBreak function into a script at a point at which you want to suspend execution and examine the application. Then enable just-in-time debugging and run the application in the development environment.

NoteJust-in-time debugging You turn on just-in-time debugging on the General page of the System Options dialog box that you open from the PocketBuilder Tools>System Options menu.

When PocketBuilder encounters the DebugBreak function, the Debug window opens showing the current context.

Examples

Example 1

This statement tests whether a variable is null and opens the Debug window if it is:

IF IsNull(auo_ext) THEN DebugBreak()