Constant

DebugBuild


Description

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

Compatibility

All project types on all supported operating systems.