DebugBuild

From Xojo Documentation

Constant As Boolean

anBoolean = DebugBuild

Used to determine whether the current operating environment is the IDE. DebugBuild is True when you compile the project by clicking the Run button in the Toolbar.

Usage

result = DebugBuild

Part Type Description
result Boolean True if the application is running within the debugger.

Sample Code

The following example displays a message box only when the app is run from the IDE.

#If DebugBuild Then
// Do extra logging
System.DebugLog("App Start")
#Endif

See Also

XojoVersion, XojoVersionString, TargetBigEndian,TargetCocoa, TargetDesktop, TargetLinux, TargetLittleEndian, TargetMachO, TargetMacOS, TargetWindows, TargetX86 constants; #If...#Endif statement.