简体   繁体   English

当IE自动从10更新到11时,无法在Visual Studio 2013中调试JavaScript

[英]Could not debug javascript in visual studio 2013 when IE auto update to 11 from 10

Yesterday the IE auto updated, I make a javascript breakpoint it can't trigger any more. 昨天IE自动更新,我做了一个JavaScript断点,它不再触发了。 Now I can't debug it, so sad. 现在我无法调试它,太可悲了。 It works well before. 以前效果很好。 If any method can repair it? 如果有什么方法可以修复呢?

I had the exact same problem and also thought it was due to IE 11. 我遇到了完全相同的问题,也认为这是由于IE 11造成的。

After doing lot of research, and not having any success, I looked at the script that were attached to the process when running my code from VS to realise that my script where minified. 经过大量的研究,但没有成功,当我从VS运行我的代码时,我查看了附加到该过程的脚本,以了解我的脚本已缩小。

After seeing that, I looked at my BundleConfig and saw that configured to explicitly use the minified version of my script. 看到这些之后,我查看了BundleConfig并看到将其配置为显式使用脚本的缩小版本。

Instead, I should have used the "*" and let Visual Studio determine if it should bundle the minified or the debug version. 相反,我应该使用“ *”并让Visual Studio确定是否应捆绑缩小版或调试版。 I did that when trying to understand how the bundling was working and forgot about the change. 在尝试了解捆绑的工作方式并忘记更改时,我就是这样做的。

I was using 我在用

bundles.Add(New ScriptBundle("~/bundles/bSoftOptimax").Include(
    "~/Scripts/bSoft/bSoftOptimax.min.js"
    ))

Instead of 代替

bundles.Add(New ScriptBundle("~/bundles/bSoftOptimax").Include(
    "~/Scripts/bSoft/bSoftOptimax*"
    ))

I think by using "*" you tell VS to create the proper bundle depending if you are debugging or creating an release version of you code. 我认为通过使用“ *”,您可以告诉VS根据调试还是创建代码的发行版本来创建适当的捆绑软件。

Once I change the code, everything was working great again. 一旦更改了代码,一切都会恢复正常。

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

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