Home > Net >  How to set Edge or Chrome to open with DevTools already activated from Visual Studio
How to set Edge or Chrome to open with DevTools already activated from Visual Studio

Time:10-24

So I do quite a bit of web development using Visual Studio, therefore my web app will launch using Edge each time I am debugging, but I still have to manually open the DevTools. Is there a way from Visual Studio to set Edge or Chrome to launch with DevTools already opened to save me time

CodePudding user response:

Here're a few steps for you. It worked for me:

Step 1: enter image description hereSelect it.

Step 2:

enter image description here

Select Browser With....

Step 3:

enter image description here

Select Add....

Step 4:

enter image description here

In Program, enter your Edge executable path. If you are not sure, you can find it in Edge://version.

In Arguments, use --auto-open-devtools-for-tabs --user-data-dir=c:\your\another profile. If an Edge instance is kept open when you debug your application, devtools may not be opened. So, another profile is suggested.

In Friendly name, choose a descriptive name for this preference.

PS: You can also set this preference as default for convenience.

  • Related