# Debug

> Debug mode enables C# debugging but reduces C# performance.

## Definition

* **Type:** Field
* **Namespace:** [UnityEditor.Compilation](/engine/6000.6/script-reference/unityeditor/compilation.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
Debug = 1
```

### Remarks

Debug mode does not perform optimizations when compiling scripts, but does add debug information to the C# Intermediate Language.
