mejobloggs
mejobloggs

Reputation: 8156

How to disable the new debug window in VS2017

I'm using Visual Studio 2017 RC and getting very frustrated with the new Chrome window that pops up when you click Debug.

Issues with the Debug Chrome Window:

Does anyone know how to disable this new Debug style window and go back to how it was in VS 2015?

Upvotes: 180

Views: 76830

Answers (10)

Hamit YILDIRIM
Hamit YILDIRIM

Reputation: 4539

if you look to JavaScript case

For Enabling and Disabling JavaScript Debugging in VisualStudio is the same on all versions

  • Tools menu
  • Options...
  • Debugging -> General
  • Uncheck "Enable JavaScript debugging for ASP.NET"

Upvotes: 2

Ali Jamal
Ali Jamal

Reputation: 619

enter image description hereIn VS menu click:

Tools > Options > search for "browser projects" > untick the last option "Stop debugger when browser window is closed.

this will do the job.

Upvotes: 9

Mykhailo Seniutovych
Mykhailo Seniutovych

Reputation: 3691

I'm using Visual Studio 2017, and what worked for me is a combination of these two options:

  1. Disable JavaScript debugging in Debug -> Options -> Debugging -> General Enable JavaScript debugging for ASP.Net.
  2. Disable stop debugging when browser is closed in Debug -> Options -> Projects and Solutions -> Web Projects -> Stop debugger when browser windows is closed, close browser when debugging stops.

When I used only one of these two it did not work.

Upvotes: 2

chitra
chitra

Reputation: 556

For VS 2017, Go to Tools -> Options -> Projects and solutions-> web projects and uncheck the last option as shown in image.

Also you can refer here: https://www.johanbostrom.se/blog/how-to-disable-the-built-in-chrome-from-starting-when-debugging-in-visual-studio-2017

enter image description here

Upvotes: 22

Sum None
Sum None

Reputation: 2279

In Visual Studio 2017:

enter image description here

If it prompts you again to turn JS debugger on again, choose another option (It will continue to prompt you if you have breakpoints in your script code):

Turn off script debugger

Upvotes: -1

Avner Pinheiro
Avner Pinheiro

Reputation: 49

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

Tools > Options > Projects and Solutions > Web Projects, uncheck “Stop debugger when browser window is closed”

works for me, visual studio professional 2017, v 15.7.3

Upvotes: 4

Katja Braz
Katja Braz

Reputation: 899

For thoose, who have the 15.7 update and unchecking the JavaScript options doesn't do the trick, found a solution here:

https://blogs.msdn.microsoft.com/webdev/2016/11/21/client-side-debugging-of-asp-net-projects-in-google-chrome/

Tools > Options > Projects and Solutions > Web Projects, uncheck “Stop debugger when browser window is closed”

Upvotes: 89

Ryan Boken
Ryan Boken

Reputation: 453

Here is the Microsoft blog about this new functionality, and how to revert.

https://blogs.msdn.microsoft.com/webdev/2016/11/21/client-side-debugging-of-asp-net-projects-in-google-chrome/

Here is the path I followed to disable:

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

Upvotes: 20

Geek
Geek

Reputation: 2846

This is not an issue, rather a new feature in VS 2017. Previously we could only debug JS and TypeScript using IE in debug mode (of VS). But now they have introduced debugging JS and TS inside VS using Remote Debugging feature of Chrome. If you are running your application in debug mode (pressing F5) and Chrome is selected browser, Visual studio 2017 will try to open a remote debugging session with Chrome on a dedicated port. With remote debugging,

  1. The browser is launched in plain mode, i.e. no extension and no history etc. Remote debuggin doesnt work with an existing instance of Chrome already running.

  2. You always see this window for a while. At this point, VS is trying to attach the remote debugger to VS

enter image description here

  1. To go back to VS 2015 experience of debugging, change the debugging target from Chrome to IIS Express.

This post describes this feature in detail. https://blogs.msdn.microsoft.com/webdev/2016/11/21/client-side-debugging-of-asp-net-projects-in-google-chrome/

A kind of quick work around is to press F5 and launch the debug session and forget about the newly opened Chrome window. Go to your normal Chrome instance and just open your site in new tab. You will still be able to debug and do everything because IIS Express will still be running your app at that port.

Update: The answer given below by @Steveadoo is the right way going forward. The option shown in his screenshot controls how chrome is launched for debugging. Uncheck it if you want to stick to your regular Chrome instance.

Hope this helps.

Upvotes: 47

smoyer
smoyer

Reputation: 8232

I'm not sure if this came with the latest VS 2017 Update, but inside Debug -> Options you can disable it now.

Just uncheck the highlighted one: enter image description here

Upvotes: 358

Related Questions