Method
IsDebugBuild
Description
Indicates at runtime whether or not the code is executing in an app launched from the IDE or in a standalone app.
Usage
result = IsDebugBuild
Part |
Type |
Description |
|---|---|---|
result |
True if the application is running from within the IDE/Debugger. |
Notes
A common usage of IsDebugBuild is to determine at runtime whether the app is running from the IDE (and thus from the Debugger) or is standalone. This is different from the DebugBuild compiler directive which determines this at compile time.
This can be useful in Libraries running in projects so the Library can determine if it is running in the IDE/Debugger or in a standalone application.
Sample code
In this example, if the app is running from the IDE, a method is called to export some debug information:
If IsDebugBuild Then
ExportDebugInfo
End If
Compatibility
Project Types |
Console, Desktop, Mobile, Web |
Operating Systems |
iOS, Linux, macOS, Windows |
See also