1 year ago

#383180

test-img

interesting_matt

How to run Microsoft Teams sample app in debug mode

I am using this app https://github.com/OfficeDev/Microsoft-Teams-Samples/tree/main/samples/tab-personal-sso-quickstart/csharp_dotnetcore

It works fine.

I wish to extend the functionality - specifically in auth.js - so I need to be able to run it in Debug mode.

I have tried for some time but have no success getting a breakpoint hit. I use the instructions at https://devblogs.microsoft.com/microsoft365dev/debugging-microsoft-teams-app-locally-with-teams-toolkit as guidance but have no success. (In particular I don't have 'Debug (Chrome)' or same for Edge available as a config in VS Code.

Can anyone point to guidance on this please or perhaps advise if I need a specific launch.json config

Thanks

Update – the Teams sample code I was using comes from https://github.com/OfficeDev/Microsoft-Teams-Samples

They run fine but I had no success getting them to debug. Any search for ‘Teams samples’ is going to find those first!

The repo linked from the ‘Samples’ button of the VS Code Teams Toolkit is at https://github.com/OfficeDev/TeamsFx-Samples and works as the article above describes.

As for why there are 2 sets of official samples, not cross referenced … go figure.

Hope that helps someone.

debugging

microsoft-teams

0 Answers

Your Answer

Accepted video resources