# BOT_SETUP_DEBUG

Enables or disables the debug mode.

```snippet totalcontrol-variables-EsRYwBUh4J
str | `0` — disable debug<br>`1` — enable debug
id  | —
```


---

## Comments

When debug mode is enabled, TotalControl starts sending debugging messages to the local chat `**DEBUG_CHANNEL**`.  
This is useful for tracing commands and monitoring TotalControl’s status during the development process.


---

## Example

```csharp
llMessageLinked(LINK_SET, BOT_SETUP_DEBUG, "1", NULL_KEY);
```