locked
What are the best ways to debug a SharePoint Online and AZURE Website app? RRS feed

  • Question

  • Hi All,

    I've created a SharePoint 2013 App that works perfectly on-premise but when I deploy the same app to our SharePoint 2013 Online environment I get a runtime error (as shown in the screenshot below). I have published the SharePoint App to an AZURE web site connected to a SharePoint online web site. I have done this procedure before with another apps and they work without any errors.

    What are the best ways to debug a SharePoint and AZURE Website app?

    Many Thanks
    Colin

    Tuesday, January 20, 2015 12:31 PM

Answers

  • Hi,

    We can use Visual Studio to debug a SharePoint and AZURE Website app.

    The steps as follows:

    1. Open Server Explorer in Visual Studio 2013, right-click on the Windows Azure node and select Connect to Windows Azure...

    2. Expand to see all the Azure services, and then expand the collection of Web Sites.

    3. Right-click on the Azure web site where you published your provider-hosted app and select Attach Debugger.

    4. The browser opens to your Azure web site, and VS.NET starts up in debugging mode.  Set your breakpoints in your code and start debugging!

    More information is here:

    Debugging SharePoint Apps That Are Hosted In Windows Azure Web Sites

    http://blogs.technet.com/b/speschka/archive/2013/11/25/debugging-sharepoint-apps-that-are-hosted-in-windows-azure-web-sites.aspx

    Best Regards


    Dennis Guo
    TechNet Community Support


    • Edited by Dennis Guo Wednesday, January 21, 2015 7:32 AM
    • Proposed as answer by Patrick_Liang Friday, January 30, 2015 11:50 AM
    • Marked as answer by Patrick_Liang Saturday, January 31, 2015 5:53 AM
    Wednesday, January 21, 2015 7:32 AM