DebugBreak

Description

Suspends execution and opens the Debug window.

Syntax

DebugBreak ( )

Return value

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.

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

Examples

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

IF IsNull(auo_ext) THEN DebugBreak()