断点当前不会被击中。(the breakpoint will not currently be hit. no symbols have been loaded for this document v

编程入门 行业动态 更新时间:2024-10-26 17:26:17
断点当前不会被击中。(the breakpoint will not currently be hit. no symbols have been loaded for this document vs 2013 javascript)

这是与MVC5相关的问题。

我无法调试我的javascript代码,但我可以调试我的C#代码,这太烦人了,我读了很多解决方案,但没有一个适合我。

This is an MVC5 related issue.

I cannot debug my javascript codes but I can debug my C# codes, it's so annoying, I read many solutions but none of them worked for me.

最满意答案

另一位团队成员补充了这一点,我不知道这一点。

BundleTable.EnableOptimizations = ture;

当您激活EnableOptimizations时,Visual Studio使用.min版本的.js文件,您将无法调试它们。 我只是将其改为false并且有效。

Another team member added this and I wasn't aware of that.

BundleTable.EnableOptimizations = ture;

When you activate the EnableOptimizations, Visual Studio uses the .min version of .js files and you won't be able to debug them. I just changed it to false and it worked.

更多推荐

本文发布于:2023-08-01 09:05:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1356762.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:断点   hit   breakpoint   symbols   javascript

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!