{"id":1518,"date":"2018-07-26T18:32:13","date_gmt":"2018-07-27T01:32:13","guid":{"rendered":"https:\/\/officedevblogs.wpengine.com\/?p=1518"},"modified":"2018-07-26T18:32:13","modified_gmt":"2018-07-27T01:32:13","slug":"devtools-microsoft-teams-desktop-client","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/devtools-microsoft-teams-desktop-client\/","title":{"rendered":"DevTools now accessible from the Microsoft Teams Desktop Client"},"content":{"rendered":"<p>Many developers have asked us, &#8220;how can I get to the browser DevTools for my Microsoft Teams app when it&#8217;s running in the desktop client?&#8221; After all, when Teams is running in a browser, it&#8217;s easy: F12 (on Windows) or Command-Option-I (on MacOS).<\/p>\n<p>While apps running in the web version of Teams and the desktop version of teams are almost exactly the same, there are some differences, particularly with respect to authentication. Sometimes the only way to figure out what&#8217;s going on is to use the DevTools. There&#8217;s been an undocumented way to get to them since the earliest versions of the desktop client, but we&#8217;ve never exposed an official way&#8230;until today.<\/p>\n<p>The feature is only available in the Developer Preview version of Microsoft Teams, which you access by clicking on your profile picture, then clicking on About &gt; Developer Preview. Teams will restart in Developer Preview mode, and there will be a new command available. (If you don&#8217;t see &#8220;Developer Preview&#8221; on the About menu, it&#8217;s because you must have <strong>Allow sideloading of external apps<\/strong>\u00a0enabled for the Office 365 tenant you are using, as described <a href=\"https:\/\/docs.microsoft.com\/en-us\/microsoftteams\/platform\/get-started\/get-started-tenant\">here<\/a>.)<\/p>\n<p>To use it, first open up a tab (it also works with the <a href=\"https:\/\/docs.microsoft.com\/en-us\/microsoftteams\/platform\/concepts\/authentication\/auth-flow-bot\">bot signin action<\/a>) so you have something to inspect with the DevTools.<\/p>\n<p>On Windows, you open DevTools via the Microsoft Teams icon in the desktop tray:<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-medium wp-image-1519 aligncenter\" src=\"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2018\/07\/microsoft-teams-devtools-windows-300x241.png\" alt=\"Invoking DevTools on Windows\" width=\"300\" height=\"241\" srcset=\"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2018\/07\/microsoft-teams-devtools-windows-300x241.png 300w, https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2018\/07\/microsoft-teams-devtools-windows.png 343w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>On MacOS, you open DevTools by clicking on the Microsoft Teams icon in the Dock:<\/p>\n<p><img decoding=\"async\" class=\"size-medium wp-image-1520 aligncenter\" src=\"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2018\/07\/microsoft-teams-devtools-mac-300x227.png\" alt=\"Invoking DevTools on MacOS\" width=\"300\" height=\"227\" srcset=\"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2018\/07\/microsoft-teams-devtools-mac-300x227.png 300w, https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2018\/07\/microsoft-teams-devtools-mac.png 742w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>Here&#8217;s what a sample tab looks like with the DevTools open and an element selected:<\/p>\n<p><img decoding=\"async\" class=\"size-medium wp-image-1522 aligncenter\" src=\"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2018\/07\/microsoft-teams-devtools-tab-300x193.png\" alt=\"Tab with DevTools Open\" width=\"300\" height=\"193\" srcset=\"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2018\/07\/microsoft-teams-devtools-tab-300x193.png 300w, https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2018\/07\/microsoft-teams-devtools-tab-1024x660.png 1024w, https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2018\/07\/microsoft-teams-devtools-tab-768x495.png 768w, https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2018\/07\/microsoft-teams-devtools-tab-1536x990.png 1536w, https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2018\/07\/microsoft-teams-devtools-tab-2048x1321.png 2048w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>And here&#8217;s what the DevTools window looks like for this tab:<\/p>\n<p><img decoding=\"async\" class=\"size-medium wp-image-1521 aligncenter\" src=\"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2018\/07\/microsoft-teams-devtools-example-300x185.png\" alt=\"DevTools on a Teams tab\" width=\"300\" height=\"185\" srcset=\"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2018\/07\/microsoft-teams-devtools-example-300x185.png 300w, https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2018\/07\/microsoft-teams-devtools-example-1024x633.png 1024w, https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2018\/07\/microsoft-teams-devtools-example-768x474.png 768w, https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2018\/07\/microsoft-teams-devtools-example-1536x949.png 1536w, https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2018\/07\/microsoft-teams-devtools-example.png 1677w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>While this feature is live worldwide today, you may have to quit and restart Microsoft Teams to use it (I did). You&#8217;ll only have to do this once, if you have to do it at all.<\/p>\n<p>Enjoy!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You can now access browser DevTools on the Microsoft Teams desktop client (both Mac and Windows). Read this post for more information.<\/p>\n","protected":false},"author":69074,"featured_media":25159,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[128],"tags":[],"class_list":["post-1518","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-microsoft-teams"],"acf":[],"blog_post_summary":"<p>You can now access browser DevTools on the Microsoft Teams desktop client (both Mac and Windows). Read this post for more information.<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts\/1518","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/users\/69074"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/comments?post=1518"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts\/1518\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/media\/25159"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/media?parent=1518"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/categories?post=1518"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/tags?post=1518"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}