Difference between revisions of "DebugBuild"

From Xojo Documentation

(See Also)
(See Also)
 
Line 36: Line 36:
  
 
== See Also ==
 
== See Also ==
[[XojoVersion]], [[XojoVersionString]], [[TargetBigEndian]],[[TargetCocoa]], [[TargetDesktop]], [[TargetLinux]], [[TargetLittleEndian]], [[TargetMachO]], [[TargetMacOS]], [[TargetWindows]], [[TargetX86]] constants; [[#If...#Endif]] statement.
+
[[XojoVersion]], [[XojoVersionString]], [[TargetBigEndian]], [[TargetCocoa]], [[TargetDesktop]], [[TargetLinux]], [[TargetLittleEndian]], [[TargetMachO]], [[TargetMacOS]], [[TargetWindows]], [[TargetX86]] constants; [[#If...#Endif]] statement.
  
 
[[Category:Compiler]]
 
[[Category:Compiler]]
 
[[Category:Debugging]]
 
[[Category:Debugging]]
 
[[Category:Language Debugging]]
 
[[Category:Language Debugging]]

Latest revision as of 22:38, 24 March 2021

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.