This is documentation for Stream Chat Android SDK v5, which is nolonger actively maintained. For up-to-date documentation, see the latest version (v6).

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:

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.

© Getstream.io, Inc. All Rights Reserved.