简体   繁体   English

JavaScript 异常不会从 chrome 返回到 Visual Studio 2017

[英]JavaScript exceptions does not go back from chrome to Visual Studio 2017

I am developing an ASP.NET projekt (ASPX/HTML/JS) with VS2017 + chrome.我正在使用 VS2017 + chrome 开发 ASP.NET 项目(ASPX/HTML/JS)。 Hitting the breakpoints works with chrome, but JS exceptions does not get back to VS.使用 chrome 可以使用断点,但 JS 异常不会返回到 VS。

Of course I keep the chrome dev window closed.当然,我保持 chrome dev 窗口关闭。 After a JS error, I can open it, and see the exception message.一个JS错误后,我可以打开它,并看到异常信息。

With IE debugging goes fine.用 IE 调试没问题。 All the softwares (browsers, VS, Win10) are up to date.所有软件(浏览器、VS、Win10)都是最新的。

Can I catch JS exceptions in VS2017 from chrome?我可以从 chrome 捕获 VS2017 中的 JS 异常吗? (or is it only possible with IE?) Or else what am I doing wrong? (或者只能用 IE ?)否则我做错了什么?

Any help appreciated.任何帮助表示赞赏。

According to the blog you provided in comments, Visual Studio 2017 support Javascript debug.根据您在评论中提供的博客,Visual Studio 2017 支持 Javascript 调试。 It could let you add breakpoints in your Javascript code and when you debug your application, the breakpoints will be hit.它可以让您在 Javascript 代码中添加断点,并且当您调试应用程序时,断点将被命中。

I also tested the Javascript exception, it only go back when use IE.我还测试了 Javascript 异常,它只在使用 IE 时返回。 In Chrome, it will not go back to Visual Studio.在 Chrome 中,它不会返回到 Visual Studio。

I have submit this issue to Visual Studio Developer Community.我已将此问题提交给 Visual Studio 开发人员社区。 You could vote and add comments from below link.您可以从以下链接投票和添加评论。

https://developercommunity.visualstudio.com/content/problem/125436/javascript-exceptions-does-not-go-back-from-chrome.html https://developercommunity.visualstudio.com/content/problem/125436/javascript-exceptions-does-not-go-back-from-chrome.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM