# Debug Console

The **Debug Console** in realvirtual.io is based on the [Unity Ingame Debug Console](https://github.com/yasirkula/UnityIngameDebugConsole), which is licensed under the **MIT License** (Copyright © Süleyman Yasir KULA).

This tool provides **full access to Unity’s console log in a build** and allows the execution of **custom commands**. It is particularly useful for **debugging** and for modifying specific **player application properties** during runtime.

<figure><img src="/files/y0zU0Slf1U7HvLpLp4ea" alt=""><figcaption><p>Debug Console</p></figcaption></figure>

## How to Use the Debug Console

1. **Add the Debug Console Prefab**\
   To enable the Debug Console in your project, add the prefab located at:

   ```
   Assets/realvirtual/UIPrefabs/DebugConsole.prefab
   ```

   into your scene hierarchy.
2. **Opening the Debug Console**\
   While running the simulation, you can open the Debug Console by clicking in the **bottom-left corner** of the screen.
3. **Console Log Indicators**
   * If there are any console log entries, small **icons** and a **log count** will appear to notify you.
   * You can review **warnings, errors, and other logs** in real time.
4. **Executing Commands**\
   The Debug Console also supports **custom commands**, allowing you to trigger specific functions or modify application settings directly.

## Console Commands

To see a full list of available commands, type the following in the Debug Console's input field:

```
bashKopierenBearbeitenhelp
```

**Available Commands**

| Command                 | Description                                                                                                                                                                                       |
| ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **ConnectOff**          | Disables Connect Mode. This setting is saved for the next start.                                                                                                                                  |
| **ConnectOn**           | Enables Connect Mode. This setting is saved for the next start.                                                                                                                                   |
| **DebugOff**            | Turns off Debug Mode. The player must be restarted for this change to take effect. *Please note: Not all components take care about Global Debug Mode.*                                           |
| **DebugOn**             | Turns on Global Debug Mode in realvirtualController. The player must be restarted for this change to take effect. *Please note: Not all components take care about Global Debug Mode.*            |
| **DeletePrefs**         | Deletes all PlayerPrefs (everything what is saved with [RuntimePersistence](/basics/runtime-ui/runtime-persistence.md) or saved manually via script). The model returns to the standard settings. |
| **help**                | Prints all available commands.                                                                                                                                                                    |
| **help \[commandName]** | Prints detailed information about the specified command.                                                                                                                                          |
| **InspectorOff**        | Disables the Runtime Inspector. The player must be restarted for this change to take effect.                                                                                                      |
| **InspectorOn**         | Enables the Runtime Inspector. The player must be restarted for this change to take effect.                                                                                                       |

For more information about implementing your own commands please check <https://github.com/yasirkula/UnityIngameDebugConsole?tab=MIT-1-ov-file>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.realvirtual.io/basics/runtime-ui/runtime-debugger.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
