断点不是javascript函数?

时间:2013-12-14 11:11:39

标签: asp.net

我在aspx设计中标记了一个调试点[在函数上]。但它没有击中

请建议我一个解决方案。

2 个答案:

答案 0 :(得分:0)

1)在正确的成功代码中加入断点

2)用IE浏览器试试

3)检查应用程序运行调试模式

4)请检查您的按钮点击事件中是否调用了正确的函数名称。(需要相同的函数名称

更多详情:Fixing "The breakpoint will not currently be hit. No symbols have been loaded for this document."

和Chrome浏览器:How to set breakpoints in inline Javascript in Google Chrome?

enter image description here

答案 1 :(得分:0)

在使用Visual Studio调试在Internet Explorer中运行的脚本之前,必须在Internet Explorer中启用脚本调试。默认情况下禁用Internet Explorer中的脚本调试。

在Internet Explorer中启用脚本调试

  1. 在Internet Explorer中,从“工具”菜单中选择“Internet选项”。
  2. 在“Internet选项”对话框中,单击“高级”选项卡。
  3. 在“高级”选项卡上的“浏览”下,清除“禁用脚本调试”。
  4. 点击确定