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:
It works when I set 'Enable legacy Chrome JavaScript debugger for ASP.NET' in Visual Studio debugging options:
But how can I solve this issue without enabling legacy Chrome JavaScript debugger?
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).
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.
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.
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:
delete .vs folder from project folder
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