Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 676
Mark C Avatar asked Oct 12 '25 09:10

Mark C


1 Answers

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.

like image 151
Kendrick Li Avatar answered Oct 14 '25 03:10

Kendrick Li



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!