Thursday, October 19, 2017

how to debug a SharePoint Provider Hosted Add-in in Visual Studio 2017

I did not have to make any configuration when i developed my SharePoint Add-In with Visual Studio 2013.

However i was unable to debug my SharePoint Provider Hosted Add-In in Visual Studio 2017.

I had to make quick change in the project property from Visual Studio

1. Select the SharePoint Add-In Project, then press F4 to launch the Property Window






2. change  from Google Chrome to Internet Explorer from Start Action drop down




3.  Press F5 to launch the project in debugging mode.

4.  Select Attached to Process from the Debug Menu to enable Visual Studio to debug the IIS process




5. click on the show process for all users if your app is running with Service Account App Pool



6. Selected w3wp.exe process and click Attach button



now you can debug you web app within SharePoint Provider Hosted Add-In solution.