Unable debugging SharePoint add-ins using Microsoft Edge

Eric Shen 21 Reputation points
2021-04-09T16:57:36.433+00:00

In Visual Studio 2019 (version 16.9.3), when I set the Start Action for my SharePoint Add-in to Microsoft Edge and start a debug session, Microsoft Edge starts but I am not able to use Visual Studio to debug. None of the breakpoints I set in Visual Studio are being hit. I am able to set breakpoints when I select Internet Explorer.

I'm connecting with a SharePoint Online site

Is there something else I need to configure to allow me use Visual Studio to debug my SharePoint add-in in Microsoft Edge

Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
1,022 questions
0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. Dylan Zhu-MSFT 6,421 Reputation points
    2021-04-12T09:42:40.12+00:00

    Hi EricShen,

    You need a Web solution package (.wsp) file to debug SharePoint addins, please follow this document to configure related options: F5 debug and deployment process

    Best Regards, Dylan

    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our * *documentation* to enable e-mail notifications if you want to receive the related email notification for this thread.**

    0 comments No comments

  2. Eric Shen 21 Reputation points
    2021-04-12T15:57:39.737+00:00

    The configuration options in the link appears to be for provided-hosted sites. I'm trying to debug on a SharePoint-online.

    Also, I have no problems debugging using Internet Explorer. I'm only using Microsoft Edge because there is a problem with the current version of Visual Studio and IE and I've been asked to use Microsoft Edge for debugging instead.


  3. Eric Shen 21 Reputation points
    2021-04-13T16:33:28.917+00:00

    I am working with the developer community on a different problem and they recommend that I use Microsoft Edge. They have offered a couple of suggestions to be able to debug with MIcrosoft Edge but still not having any success. I want to see if anybody here has been successful debugging their SharePoint Add-in using Microsoft Edge

    Here's the link to my Developer Visual Studio issue: https://developercommunity.visualstudio.com/t/getting-a-javascript-critical-error-when-installin/1388496

    0 comments No comments

  4. Eric Shen 21 Reputation points
    2021-04-13T16:55:51.687+00:00

    I see another ticket that confirms that Visual Studio doesn't support Microsoft Edge (nor Google Chrome) for SharePoint Add-in projects.

    https://developercommunity.visualstudio.com/t/vs2019-ee-debugger-does-not-work-on-chrome-and-edg/1220440

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.