发生一个或多个错误。

未能启动调试适配器。可以在输出窗口中查看额外的信息。

Cannot connect to runtime process, timeout after 10000 ms (reason: Cannot connect to the target: connect ECONNEREFFUSED127.0.0.1:2015).

Cannot connect to runtime process_JavaScript

原因:开启了vs的javascript的调试模式,导致的。

This is due to VS debug option: debug JavaScript turned on, but the browser in question is not allowing debugger to connect to a special port. IMHO this way of debug JavaScript never was any good - browser JS debug tools are far better.

When I turned it off, both VS2017 and 2019 debuggers started to work (without JS debugging of coarse)

解决方法:关闭vs的JavsScript调试功能即可。

【工具】-》【选项】-》【调试】-》【常规】 找到javascript的调试项,关闭即可。

Cannot connect to runtime process_JavaScript_02