> ## Documentation Index
> Fetch the complete documentation index at: https://moengage.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Debugging Mode

> Enable debug logging in the MoEngage Web SDK to troubleshoot integration issues in the browser console.

The SDK logs a wealth of useful information in debug mode. This mode is automatically activated when loading the SDK in a **Test** environment.

However, to view these logs in a **Live** environment, enter the following command in the **Console** section of your browser's developer tools:

<CodeGroup>
  ```javascript JavaScript theme={null}
  Moengage.setDebugLevel(2)
  ```
</CodeGroup>

Enabling this allows you to see detailed logs that help debug incorrect integrations, presented in a clear, color-coded format:

<img src="https://mintcdn.com/moengage/b13dNrqwcDhjET-m/images/Debug.png?fit=max&auto=format&n=b13dNrqwcDhjET-m&q=85&s=7b7d3a6ae2de71ea1e0ec823bdb53a4c" alt="Debug" width="2504" height="946" data-path="images/Debug.png" />

## Multiple Integrations

The SDK may behave unexpectedly if it is added to your website more than once. If this occurs, and debug mode is enabled, you will see the following error message in the browser console:

`MoEngage Web SDK initialised multiple times. Please integrate the Web SDK only once!`

<Note>
  This error message will only appear if you are using the latest SDK integration code as specified in the documentation.
</Note>
