# debug

The `debug` command is used to start your server directly in your current terminal (outside of ([tmux](/requirements/tmux.md)) and should only be used for diagnosing issues. If a game server is already running in the background debug will stop it to start a `debug` session.

## Commands

Standard: `./gameserver debug`

Short: `./gameserver d`

{% hint style="success" %}
To exit debug mode use `CTRL+c`
{% endhint %}


---

# 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://docs.linuxgsm.com/commands/debug.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.
