# Debug

> Gets or sets whether to compile the code in a way that allows it to be debugged. If this is set to true, the current implementation disables optimisations on this method allowing it to be debugged using a Native debugger.

## Definition

* **Type:** Property
* **Namespace:** [Unity.Burst](/engine/6000.6/script-reference/unity/burst.md)
* **Assembly:** UnityEngine.BurstModule

```csharp
public bool Debug { get; set; }
```
