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?
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."
Tools > Options > Debugging > Just-In-Time > Uncheck Script Option.
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.
To end a debugging session in Microsoft Visual Studio, from the Debug menu, choose Stop Debugging.
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
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With