How can I debug javascript code that is being executed inside microsoft teams tab of android mobile teams application?

I am developing a custom tab for microsoft teams app. For the application inside the custom tab, I need to debug the javascript code flow, like we do in desktop browser. Is there any way we can achieve that.?


As explained in DevTools for Microsoft Teams tabs help page:

You can also enable the DevTools from the Teams Android client. To enable DevTools, you must:

  1. Enable the developer preview.

  2. Connect your device to your desktop computer, and set up your Android device for remote debugging.

  3. In your Chrome browser, open chrome://inspect/#devices.

  4. Select inspect under the tab you wish to debug, as in the following image:

Select "inspect" under the tab you wish to debug.