---
metadata:
  - name: generator
    content: Diplodoc Platform v5.52.0
alternate:
  - https://yandex.com/dev/games/doc/en/console/debug-panel.md
  - https://yandex.com/dev/games/doc/hi/console/debug-panel.md
  - https://yandex.com/dev/games/doc/ko/console/debug-panel.md
  - https://yandex.com/dev/games/doc/ru/console/debug-panel.md
  - https://yandex.com/dev/games/doc/tr/console/debug-panel.md
  - https://yandex.com/dev/games/doc/vi/console/debug-panel.md
  - https://yandex.com/dev/games/doc/zh/console/debug-panel.md
  - href: en/console/debug-panel.md
    type: text/markdown
    title: Markdown version
  - href: ../llms.txt
    type: text/markdown
    title: llms.txt
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.com/dev/games/doc/en/llms.txt

# Debug panel

<!-- source: en/_includes/script-common.md -->
<!-- source: en/_includes/script/index-js.md -->

<!-- endsource: en/_includes/script/index-js.md -->

<!-- source: en/_includes/script/requirements-js.md -->

<!-- endsource: en/_includes/script/requirements-js.md -->

<!-- source: en/_includes/script/image-modal-js.md -->

<!-- endsource: en/_includes/script/image-modal-js.md -->
<!-- endsource: en/_includes/script-common.md -->

The Debug panel is a tool that allows you to test the draft: track SDK calls, emulate a poor internet connection, remove the focus from the game, turn off the Yandex loading screen, etc.

## Enable Debug panel {#debug-panel-on}

<!-- source: en/_includes/requirements/start-debug-panel.md -->
{% list tabs %}

- Using the developer console
    1. Open the [Yandex Games console](https://games.yandex.com/console){.external}.
    2. Select the game you need.
    3. In the top left corner, click on **Open with debug panel**.

- Using the address bar
    1. Open the required game.
    2. Add `&debug-mode=16` to the end of the browser's address bar.

       Example link: `https://yandex.com/games/app/XXXX?debug-mode=16`, where `XXXX` is the unique game ID.

{% endlist %}
<!-- endsource: en/_includes/requirements/start-debug-panel.md -->

The Debug panel will appear in the bottom left corner of the game page.

## Parts of the Debug panel {#debug-panel-parts}

<div class="colored-header">

#|
|| [IT](#loader) | [🟢](#game-ready-call) | [⚒️](#tools-button) | [文](#i18n-button) | [▶️](#play-button) | [🎮](#gamepad-button) | [⏱️](#clock-button) ||
|#

</div>


### Loader {#loader}

The Loader can have values:

#|
|| **Indicator** | **Text** | **Value** ||
|| `W` | — | Awaiting initialization. ||
|| `IT` | ##Is loader: true## | SDK loader initialized correctly. ||
|| `IF` | ##Is loader: false## | Using the old loader. Please load the SDK according to the [documentation](https://yandex.com/dev/games/doc/en/sdk/sdk-about.md#connect) ([item 1.19.1](https://yandex.com/dev/games/doc/en/concepts/requirements.md#1-19-1)). ||
|#


### Game Ready Indicator {#game-ready-call}

Hover over the indicator to check the SDK status in the game and the moment of calling the method [`LoadingAPI.ready()`](https://yandex.com/dev/games/doc/en/sdk/sdk-game-events.md#gameready) ([item 1.19.2](https://yandex.com/dev/games/doc/en/concepts/requirements.md#1-19-2)). It can be purple, green, or red:

<div class="table-25">

#|
|| **Indicator** | **Text** | **Value** ||
|| Blinking purple ![](../_images/debug-panel/gra-purple.svg) | ##SDK is not initialized. Wait for "unit" call.## | The game is waiting for SDK initialization. ||
|| Blinking purple ![](../_images/debug-panel/gra-purple.svg) | ##The game has initialized the SDK. Waiting for call "ready".## | The game has initialized the SDK and is now waiting for the `LoadingAPI.ready()` method call. The waiting time for Game Ready is 90 seconds. ||
|| Turned green ![](../_images/debug-panel/gra-green.svg) | ##The game called ready after … ms.## | The `LoadingAPI.ready()` method was called after the specified number of milliseconds. ||
|| Turned red ![](../_images/debug-panel/gra-red.svg) | ##\"ready" called on timeout.## | Game Ready was not called within the 90 seconds of waiting time. In this case, it is considered that Game Ready is not used in the game. ||
|#

</div>

{% cut "**Why do I see the _SDK is not defined_ error, although the Game Ready indicator shows that the SDK is initialized?**" %} {#error}

It's crucial to initialize the SDK correctly: the `/sdk.js` script must be added before executing [YaGames.init()](https://yandex.com/dev/games/doc/en/sdk/sdk-about.md#use). The Game Ready indicator only registers whether the SDK is [installed](https://yandex.com/dev/games/doc/en/sdk/sdk-about.md#connect) in the game and whether the necessary script is connected.

{% endcut %}


### SDK mocks ⚒️ Tool Button {#tools-button}

#### Language selection parameter {#lang}

This feature allows you to change the language that is automatically set for the game.

In the dropdown list with the language designation (for example, **En ![](../_images/debug-panel/choose-game-lang-arrow.svg)**), select the one you need. The game will open in this language in a new tab.

For more information, see the [verification methodology](https://yandex.com/dev/games/doc/en/requirements/2/14.md) for item 2.14 of the Game requirements.

#### Link Icon: 🔗 **Game links mock is disabled** / 🔗 **Game links mock is enabled** {#link-icon}

This parameter is used to verify compliance with Game requirements [item 8.4.1](https://yandex.com/dev/games/doc/en/concepts/requirements.md#8-4-1). It is considered fulfilled if a static page opens in verification mode instead of links to other games. For more details, see the [verification methodology](https://yandex.com/dev/games/doc/en/requirements/8/4/1.md).

To enable or disable the verification mode:

1. Select 🔗 **Game links mock is disabled** or 🔗 **Game links mock is enabled** accordingly.
2. Wait for 5 seconds and reload the game.

#### Eye icon: 👁 **Remove the focus from the game** / 👀 **Return the focus to the game** {#eye-icon}

Press the button to unfocus from the game or return the focus back. This is useful for debugging and testing the game.

#### Rocket or turtle icon: 🚀 **Network throttling is disabled** / 🐢 **Network throttling is enabled** {#rocket-turtle-icon}

The rocket and turtle toggle the server response timeout. Press this button to switch between modes:

- In rocket mode, the server response timeout is standard. The game operates in normal mode.

- In turtle mode, the client demands an immediate response from the server. If there is no response in a short time, the game assumes that the server did not respond. This mode is used for testing the game to emulate an error. For example, it's used to test the game under poor internet connection conditions, or to simulate a purchase error if the SDK server does not respond in time.

#### Currency Icon: 🪙 **Currency mock is disabled** / 🪙 **Currency mock is enabled** {#currency-icon}

This setting emulates the in-game currency (name and icon).

To verify that the currency designation in the game is taken from the SDK:

1. Select **Currency mock is enabled**.
1. Wait 5 seconds and reload the game.
1. Check that the currency designation in the game has changed to the [mock one](*currency_mock). If the currency:

    - Has changed — the game correctly uses SDK methods for designating the portal currency (complies with [item 3.8](https://yandex.com/dev/games/doc/en/concepts/requirements.md#3-8) of the Game requirements).
    - Has not changed — the game does not use methods for designating the portal currency, and violates [item 3.8](https://yandex.com/dev/games/doc/en/concepts/requirements.md#3-8) of the Game requirements. Moderators will reject such a game. You need to designate the currency name and icon in accordance with the [documentation](https://yandex.com/dev/games/doc/en/requirements/1/13.md#currency-detection).

To return to the standard currency designations, select **Currency mock is disabled** and refresh the game page.

#### Cloud icon: ☁️ **Clear cloud data** {#cloud-icon}

Clears saved player data and statistics.

The button calls the [player.setData()](https://yandex.com/dev/games/doc/en/sdk/sdk-player.md#setdata) and [player.setStats()](https://yandex.com/dev/games/doc/en/sdk/sdk-player.md#setstats) methods with empty values.

After reset, the game starts as if for the first time — this is convenient for testing onboarding and the initial gaming experience.


### Language indicator 文 {#i18n-button}

The 文 indicator helps verify that automatic language detection works in the game through the [Yandex Games SDK](https://yandex.com/dev/games/doc/en/sdk/sdk-environment.md#structure-i18n).

#|
|| **Background** | **Text** | **Meaning** ||
|| ![SVG](../_images/debug-panel/i18n-on.svg) | ##I18N is used## | Automatic detection is enabled. ||
|| ![SVG](../_images/debug-panel/i18n-off.svg) | ##I18N is not used## | Automatic detection is not enabled. ||
|#

For more information, see the [verification methodology](https://yandex.com/dev/games/doc/en/requirements/2/14.md) for item 2.14 of the Game requirements.


### Play Button ▶️ {#play-button}

The play button is a game activity indicator. Through the `game_api_pause`/`game_api_resume` events, the platform notifies when the game needs to pause or resume the gaming experience.

Press the button to simulate the events' behavior:

- ▶️ — the game is in focus, and the gameplay is ongoing.
- ⏸️ — the game is not in focus, the purchase window is open, or an advertisement is being displayed.

### Gamepad Button 🎮 {#gamepad-button}

The gamepad button 🎮 emulates the use of [SDK methods](https://yandex.com/dev/games/doc/en/sdk/sdk-game-events.md#gameplay) `GameplayAPI.start()` and `GameplayAPI.stop()` ([item 1.19.3](https://yandex.com/dev/games/doc/en/concepts/requirements.md#1-19-3)). Press it to toggle between states:

- Dark background ![](../_images/debug-panel/gameplay-none.svg) (default) — gameplay is not used in the game.
- Green background ![](../_images/debug-panel/gameplay-on.svg) — gameplay is in progress.
- Red background ![](../_images/debug-panel/gameplay-off.svg) — gameplay is paused.

### Clock Button ⏱️ {#clock-button}

Click on the clock ⏱️ to toggle the transparency of the Yandex loading screen:

- **Mute Game loader** — the transparency will be disabled, and a loading screen with the game's icon at the center will appear at game start.
- **Show Game loader** — the transparency will be enabled, making the game's loading icon transparent. You can see what is happening with the game during loading.

[*currency_mock]: Mock currency is a conditional currency for testing that the server returns. Moderators use the text designation TST and the yen icon ¥ as the mock currency.