# BOT_SETUP_DEBUG

Enables or disables the debug mode.

## Variables

The following table shows input values (you send them with the API call) and returned output values.

| **Variable** | **Description** |
|----------|-------------|
| `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);
```