Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to debug JavaScript code executed inside Microsoft Teams tab?

I am developing a Microsoft Teams app. The documentation does not mention how to debug the actual JS code running inside the teams app.

For other office 365 add-ins based on Office JS like outlook, word etc. we can use F12 tool to debug the JavaScript. I am looking for a similar experience for teams addin.

Any help in this regard would be appreciated.

like image 585
Deepak Sharma Avatar asked Apr 16 '18 12:04

Deepak Sharma


People also ask

How do I get debug logs for MS Teams?

Click on the Microsoft Teams icon in your system tray, and select Get Logs. The files will be available in ~/. config/Microsoft/Microsoft Teams/logs. txt .


1 Answers

You can debug native team’s client without any configurations by enabling developer tools on teams. To enable developer mode click 7 times on the team’s status icon as shown below. Screenshot Once the developer mode enabled, right click on it and you can see two main options open DevTools (Main Window) and Open DevTools (All WebContents) to debug the team applications.

like image 185
Per Ejnar Thomsen Avatar answered Sep 28 '22 03:09

Per Ejnar Thomsen