# Debug

The SDK includes a tool to debug requests and help the user to understand how and when the backend is being requested.

## ApiRequestsAnalyser

The `ApiRequestsAnalyser` can be called at any time to print out all the requests that were made with their information.

Enable it using:

```kotlin
ChatClient.Builder(apiKey, context)
    .debugRequests(true)
    .build()
```

Then you can request the information for the requests used `ApiRequestsAnalyser.dumpRequestByName` or `ApiRequestsAnalyser.dumpAll`.

To clear the information of the analyser to focus on some information, it is possible to clear the data using `ApiRequestsAnalyser.clearRequestContaining` or `ApiRequestsAnalyse.clearAll`.


---

This page was last updated at 2026-03-05T19:01:43.326Z.

For the most recent version of this documentation, visit [https://getstream.io/chat/docs/sdk/android/v5/client/guides/debug/](https://getstream.io/chat/docs/sdk/android/v5/client/guides/debug/).