Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Stop Visual Studio from launching a new browser window when starting debug?

I already have a window open with the web site I'm debugging. I don't need VS to launch another one for me every time I need to debug.

Is there a way to stop this behavior?

like image 508
sker Avatar asked Apr 04 '09 04:04

sker


People also ask

How do you stop browser closing automatically when you stop Debugging on VS 2019?

To find this setting, open the Visual Studio Options dialog from Tools menu and select Options. From there, locate Web Projects from the Projects and Solutions navigation tree. Now untick the option box that says "Stop debugger when browser window is closed, close browser window when debugger stops."

How do I stop chrome script Debugging in Visual Studio is enabled?

Tools > Options > Debugging > Just-In-Time > Uncheck Script Option.

How do I change the Debug browser code in Visual Studio?

Alternatively, you can also use the Visual Studio Code command palette and run the “Debug: Open Link” command. From there on you can choose to debug in Chrome, Edge or Node. js without having to install any extensions. If you choose Edge, you'll notice an extra feature in the debug toolbar: an inspect button.

How do I disable Debug mode in Visual Studio?

To end a debugging session in Microsoft Visual Studio, from the Debug menu, choose Stop Debugging.

How to close the debugger window when debugging in Visual Studio?

Go to your Visual Studio options Tools >>> Options >>> Project and Solutions >>> Web Projects then finally untick option >>> Stop debugger browser window is closed, close browser when debugging stops Step 2: untick option >>> Stop debugger browser window is closed, close browser when debugging stops

How do I stop a browser from launching in Visual Studio?

Go to Tools -> Options -> Debugging -> General Make sure the option is unchecked. How to not launch a browser. Go to the launchSettings.json file in your Visual studio project, look for the following line. This will stop it from launching a browser at all.

How do I debug a web application in Visual Studio?

When you first open a web/app project, do a Ctrl - F5, which is the shortcut for starting the application without debugging. Then when you subsequently hit F5 and launch the debugger, it will use that instance of IE. Then stop and start the debugging in Visual Studio instead of closing IE. It works on my machines.

How do I disable the debugger from opening a new tab?

Select the Web Projects. Then deselect the option below. Stop debugger when browser window is closed, close browser when debugging stops. This works for me. Hope this will help. It still opens a new tab every time when I start debugging.


1 Answers

Open your startup project's properties (Project → {ProjectName} Properties... from the main menu or right click your project in the Solution Explorer and choose Properties), then navigate to the Web tab and under Start Action choose Don't open a page. Wait for a request from an external application.

You will still be able to use any browser (or Fiddler, whatever) to access the running application, but it won't open the browser window automatically, it'll just start in the background and wait for any requests.

like image 171
Pawel Krakowiak Avatar answered Sep 28 '22 05:09

Pawel Krakowiak