# Debugging

Learn how to debug your integration.

If you are experiencing issues with your application, there are a few things you can do to diagnose the problem.

> **Need help?**
>
> If you have any questions, please [contact us](https://croct.com/contact/support) for assistance or join our [community](https://croct.link/community) to get help from our team and other users.

## Enable debug mode

The SDK logs everything that happens internally, which can be useful for detecting and diagnosing issues with your integration. Each log receives a severity level, so you can filter only those messages you need.

The severity levels and their respective meanings are:

- **Debug**\
  Step-by-step information useful for debugging.
- **Info**\
  Informational messages that provide additional context or details.
- **Warning**\
  Potential issues that might be problems or might not.
- **Error**\
  Abnormal or unexpected behaviors that need attention.

To enable debug logging, pass the [`debug`](../api/plug/plug#configuration-debug-prop) option when initializing the SDK:

```ts
croct.plug({debug: true});
```

Then, opening the browser console should show the logs.

## Check the network requests

Sometimes, the issue is caused by a network request failing, either because of a network issue or a misconfiguration.

You can check the network requests by opening the **Developer Console** in your browser and going to the **Network** tab. Issues with network requests will be highlighted in red.

## Review common issues

Check the list of [common issues](./problem) to see if your problem is listed there.
