问题
I have asp.net mvc 5 project. When I try to start debugging with enabled Script debugging mode and using Chrome, the Visual studio 2017 shows 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?
回答1:
I've found it's easiest to never use JavaScript debugging in Visual Studio. IMHO 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:
回答2:
Unfortunately, this is a known issue that the Microsoft people has put on the back burner. https://developercommunity.visualstudio.com/content/problem/641639/failed-to-launch-debug-adapter-for-google-chrome-o.html
回答3:
For me it worked if I just unchecked the option -> build, then I checked it again.
回答4:
delete .vs folder from project folder
回答5:
I just unchecked the option. It's working for me:
回答6:
I just clicked the Build tab, then clicked Build Solution. No more error and the solution ran fine after.
来源:https://stackoverflow.com/questions/58767169/visual-studio-2017-failed-to-launch-debug-adapter-chrome