DevTools for Microsoft Teams tabs

When Teams is running in a browser, it's easy to access the browser's DevTools: F12 on Windows or Command-Option-I on MacOS. The DevTools gives you access to:

  1. View console logs.
  2. View or modify HTML, CSS, and network requests during runtime.
  3. Add breakpoints to your JavaScript code and perform interactive debugging.

Note

The feature is only available for desktop and Android clients after the Developer Preview has been enabled. For more information, see How do I enable developer preview.

Access DevTools on the desktop

While the web version and the desktop version of Teams are almost the same, there are some differences concerning authentication. Sometimes the only way to figure out what is going on is to use the DevTools. To use DevTools in the desktop client, you must:

  1. Ensure you have enabled developer preview.
  2. Open up a tab so you have something to inspect with the DevTools.
  3. Open the DevTools one of the following ways:
    • On Windows, you open DevTools via the Microsoft Teams icon in the desktop tray.

      developer-tool-windows

    • On MacOS, select the Microsoft Teams icon in the Dock.

      mac-os-dev-tools

The following example shows DevTools open and inspecting a tab configuration dialog:

Tab and DevTools

Access DevTools from an Android device

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:

    Android DevTools

See also