[英]Unable to debug JavaScript code in Visual Studio when starting to debug a web app in Mozilla Firefox
I have set Mozilla Firefox as default browser and and MVC 2 web app when debugged from Visual Studio starts in Mozilla, I have checked Script option in Visual Studio debugging settings but it still does not want to stop an any break point in JavaScript.我已将 Mozilla Firefox 设置为默认浏览器和 MVC 2 Web 应用程序,当从 Visual Studio 调试时在 Mozilla 中启动,我已经检查了 Visual Studio 调试设置中的脚本选项,但它仍然不想停止 JavaScript 中的任何断点。 It says:
它说:
"The break point will not currently be hit. No symbols have been loaded for this document"
“当前不会命中断点。没有为该文档加载符号”
When using IE8 instead of Mozilla Firefox it stops on the break point.当使用 IE8 而不是 Mozilla Firefox 时,它会在断点处停止。
The break point is set on button click event function.断点设置在按钮单击事件函数上。
What could be causing the problem?是什么导致了这个问题?
You can only use the IE browser in this way as different browsers have different API's for debugging.你只能用这种方式使用IE浏览器,因为不同的浏览器有不同的调试API。 You can launch firefox, chrome etc when you run your project but not step through javascript.
您可以在运行项目时启动 firefox、chrome 等,但不能单步执行 javascript。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.