DebugBuild

From Xojo Documentation

Revision as of 22:38, 24 March 2021 by Gperlman (talk | contribs) (See Also)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Constant As Boolean

aBoolean = 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.