In this post we will discuss how we can debug a SharePoint add-in or provider hosted add-in in a different browser in visual studio 2015. Whenever you develop any solution and try to debug the solution, it will open in the default browser (mostly set IE). But you might need to debug in a different browser.
Recently we were developing a provider hosted add-in and we wanted to debug it into a different browser. By default, it was opening in Internet Explorer.
In a provider hosted add-in, there will be two projects one is your add-in project and another one is the Asp.Net project (maybe an asp.net MVC project or asp.net web form project depending on your selection while creating the provider hosted add-in).
Here select the add-project and go to properties (F4), you can see “Start Action” property. In this property, you can see the browser available. Select the browser and then when you click on F5 or Debug start button, it will take the selected browser. See fig below:
Read some SharePoint online tutorials:
- Steps to delete sites sub sites using .Net managed object model in SharePoint online
- How to check if list exists in SharePoint online using .Net managed object model CSOM?
- SharePoint Online Create choice type site column and add mapping inside SharePoint hosted add-in using visual studio 2015
Hope this will be helpful.
SharePoint Online FREE Training
JOIN a FREE SharePoint Video Course (3 Part Video Series)