Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2017 Failed to launch debug adapter 'chrome'

I have a asp.net mvc 5 project. When I try to start debugging with enabled Script debugging mode, and using Chrome, the Visual studio 2017 shows the error:

enter image description here

It works when I set 'Enable legacy Chrome JavaScript debugger for ASP.NET' in Visual Studio debugging options:

enter image description here

But how can I solve this issue without enabling legacy Chrome JavaScript debugger?

like image 611
Andrii Avatar asked Nov 08 '19 13:11

Andrii


People also ask

How do I fix chrome script debugging in Visual Studio is enabled?

If you want Visual Studio to return to its default pre-15.7 behavior, all you have to do is enable script debugging in Tools | Options | Debugging | and check “Enable JavaScript debugging for ASP.NET (Chrome, Edge, and IE).

How do I enable debugging in Visual Studio?

In the Visual Studio toolbar, make sure the configuration is set to Debug. To start debugging, select the profile name in the toolbar, such as <project profile name>, IIS Express, or <IIS profile name> in the toolbar, select Start Debugging from the Debug menu, or press F5.

How do I open debugger in Chrome with Vscode?

To debug any project in either Chrome or Microsoft Edge, all you need to do is to start a session by pressing F5 or activating the debug icon in the menu bar and selecting “Run and debug”. Alternatively, you can also use the Visual Studio Code command palette and run the “Debug: Open Link” command.


2 Answers

I've found it's easiest to never use JavaScript debugging in Visual Studio. In my honest opinion, the Chrome JavaScript debugger is a much better alternative for debugging.

To turn off debugging and fix the error in VS2019, go to Tools > Options > Debugging > General. Uncheck the following option:

enter image description here

like image 64
Chris Halcrow Avatar answered Oct 10 '22 07:10

Chris Halcrow


delete .vs folder from project folder

like image 35
Travel Arts Avatar answered Oct 10 '22 07:10

Travel Arts