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

``` xojo
result = IsDebugBuild
```

| Part   | Type                               | Description                                                                            |
|--------|------------------------------------|----------------------------------------------------------------------------------------|
| result | `Boolean</api/data_types/boolean>` | `True</api/language/true>` if the application is running from within the IDE/Debugger. |

## Notes

A common usage of <span class="title-ref">IsDebugBuild</span> 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</api/compiler_directives/debugbuild>` compiler directive which determines this at compile time.

This can be useful in `Libraries<sharing_code_among_multiple_projects.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:

``` xojo
If IsDebugBuild Then
  ExportDebugInfo
End If
```

## Compatibility

|                       |                               |
|-----------------------|-------------------------------|
| **Project Types**     | Console, Desktop, Mobile, Web |
| **Operating Systems** | iOS, Linux, macOS, Windows    |

<div class="seealso">

`DebugBuild</api/compiler_directives/debugbuild>`

</div>
