Overview

Debugging

No code ever runs in the first go. When things go wrong, debugging becomes an important aspect for a developer first SDK. We have designed our APIs and error messages with developer experience and ease of debugging in mind. We hope that you'll have a delightful experience walking through the features and integrating our SDK in your app.

Console Logs

In case of any issues, we print error or warning logs in console to help with faster debugging.

types

The log level can be configured to control SDK logging.

Fully Typed API

Since our Web SDK is written in TypeScript, you will get the amazing Intellisense / Autocompletion out of box. This means that even if you use JavaScript, editors will be able to give a significantly improved experience.

types

Redux DevTools Integration

We take the debugging experience one step further by connecting our store to redux DevTools extension by default. This gives you transparency and visibility into the whole room state while building your UI.

Redux Devtools

We highly recommend installing the DevTools extension to visualize this state along with all the activities taking place in a single view. This makes it easier to understand when and how the UI should change. You can use the time travel feature of the redux DevTools to recreate state changes for debugging specific issues as well.

Feature Rich Sample App

We also give a ready to use UI without writing any code which can be accessed from the dashboard account. The code for this sample is open sourced here. You can either start with this codebase or write your own, and use it for testing your web-app in the initial phase of development.

Error Codes

Do check the detailed page for listening to and handling errors here.

Reaching Out

If nothing else works, feel free to create an issue here or reach out to us on discord, there is a channel there for web-sdk-discussion. If you're reporting a bug, we would appreciate as many details possible. We might further ask you for the following information to debug the issues better -

Steps to reproduce

Detailed steps to reproduce the issue. You can also give us a Codesandbox where the issue can be seen, feel free to base off the code over one of our quickstart examples.

Relevant code snippet

This would be the React Component or the JS Function in/around which the bug/issue happens.

Store Dump

You'll need to install the redux DevTools extension for this. Once you open the DevTools there would be a download option on bottom panel.


Have a suggestion? Recommend changes ->

Was this helpful?

1234