简体   繁体   English

在VS中调试JavaScript

[英]Debugging JavaScript in VS

Whenever I set a breakpoint in JavaScript in Visual Studio, the debugger never breaks at the point. 每当我在Visual Studio中的JavaScript中设置断点时,调试器就不会在该点中断。 When I put my mouse over the breakpoint at run-time, it says "This breakpoint will currently not be hit. No symbols have been loaded for this document." 当我在运行时将鼠标悬停在断点上时,它显示“此断点当前不会被命中。此文档未加载任何符号。”

What does this mean? 这是什么意思? How do I enable JavaScript debugging/breakpoints? 如何启用JavaScript调试/断点?

您必须在Internet Explorer中启用Javascript调试:工具-> Internet选项->高级,然后取消选中两个“禁用脚本调试”选项。

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

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