# Debug Mode

Pokémon Unity's Expansion features a "Debug Mode" which lets you access various options while developing your project on the\
framework. To enable access to this mode, change the boolean "allowDebug" in GlobalVariables.cs to a true value.

## Enabling the Debug Menu

To open the Debug Menu, press Right Shift while on the overworld. The first time you open this menu, it will\
ask you if you'd like to enable the Debug Menu and disable saving:

![Enabling debug mode](/files/-LA_MWz8NJszVXcTtHDX)

After enabling the mode, saving will be disabled and your Discord Player image key will be set to "debugging".\
You can press right shift again to see the Debug Menu:

![Debug menu](/files/-LA_MX-6INqjQAz-S41S)

* Reset Cam
  * Resets the Player's camera to it's default position.
* Toggle UI
  * Toggles the build information and debug logging in the corner.
* Toggle Time
  * Toggles the dynamic time of day system, resets to 12:00 when disabling.
* Jump On A
  * Allows the Player to jump at any time using the Select button (usually space).

    This allows for map exploits to be taken advantage of.
* High-Res
  * Changes the current resolution of the game to 1062x597.

    (Highest resolution when game is maximized on a 768p display in the editor)

    ![High-Res](/files/-LA_MX5-FrXLta2FMli2)

    Make sure not to enter any new areas with this mode active as it will blind you.

    You can unblind yourself by using Right Shift+Down x4+Select.
* Low-Res
  * Resets the current resolution to the default 392x192.
* Reload Map
  * Resets the current scene as well as resetting the Player's position.
* Exit Debug
  * Exits the Debug Menu and returns control to the Player.

## Other Debug features

You can win any battle you're in by pressing the Mega Evolution button with a Pokémon that cannot Mega Evolve.\
This will cause your Pokémon to use Struggle and by the time all moves have finished and you have not blacked out, you will\
automatically win regardless of what progress you've made during the battle.

You can manipulate the camera while you're not busy. T moves forward, G moves backward, F moves left, H moves right, V moves up, and B moves down. To reset the camera's position, head into the Debug Menu and select "Reset Cam".


---

# 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://pokemonunity.gitbook.io/pokemon-unity/debug-mode.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.
