Enable extensions when debugging a website in Chrome from Visual Studio 2017

Switching from Visual Studio 2015 to 2017 I find that starting a web API project now launches a clean, separate Chrome window. For the most part, I like it, and of course I like this idea: it also means that there are no extensions in Chrome .

Is there a way to start a web API project from Visual Studio 2017 and run Chrome with extensions?

Or if it’s not, can I revert to the previous behavior when my project opens as a new tab in my existing Chrome window?

I tried Googling but found nothing. I checked the drop-down list in Visual Studio with browsers (and checked the Browse With ... dialog box), but I did not find any solution there.

+5
source share
2 answers

All you have to do is log in to the Chrome instance that VS2017 launches as a user, you have all your usual extensions installed under (i.e. logging in as the same user, which you usually sign as) .

This input is "sticks", so extensions will be loaded in current and subsequent debugging sessions.

+4
source

You can return to the old behavior

Debugging> Options> Debugging> General> (uncheck) Enable JavaScript debugging for ASP.Net (Chrome and IE).

Is there a way to start a web API project from Visual Studio 2017 and run Chrome with extensions?

Yes, but it only works for one project, which means you need to reinstall the extensions when starting a new project. I tried syncing in Chrome (not working).

In my opinion, there is something to do with the profile of the Chrome remote debugging protocol. Hopefully someone knows that Chrome can provide a final solution for this.

you can find out more here: remote debugging protocol


There is a way that you do not need to change anything. But it is annoying.

Because Visual Studio 2017 uses the Chrome instance for debug mode when you press F5, you can leave this instance of the debug mode open with the remote debugging protocol and use the default Chrome instance with full extensions. Just copy and paste the link into your favorite instance of Chrome.

Cheer! hope this helps.

+5
source

Source: https://habr.com/ru/post/1265608/


All Articles