Search code examples
debuggingmicrosoft-edgemicrosoft-edge-extension

How can a Microsoft Edge (Legacy) content script be debugged?


Update: The following question was asked in 2017 and was about a legacy version of Edge (before Edge's switch to Chromium); the issue does not directly apply to new versions of Edge (versions built since 2020).


Microsoft has some decent documentation on debugging Content Scripts for an Edge Extension and the top of the page even includes a Channel 9 video on the subject.

Unfortunately, the techniques no longer seem to work, as even when following the debug instructions and using the the sample Text Swap extension, the extension and content script never show up in the debugger.

Screenshot of Edge running Text Swap extension

As you can see from the screenshot, the content script has run (and changed the font on the page) but it and the extension itself are nowhere to be seen in the debugger.

Anyone figured out how to get the content script to show up in the debugger?


Solution

  • This was a bug that has been fixed in an upcoming version, see https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/13829248/ for details.