【问题标题】:Breakpoint is not hit on javascript function?断点未命中 javascript 函数?
【发布时间】:2013-12-14 11:11:39
【问题描述】:

我在 aspx design[on function] 中标记了一个调试器点。但它没有击中

请给我一个解决方案。

【问题讨论】:

  • 你的意思是,你不能调试但代码正在运行?
  • 是的,我提到了 onclient 点击按钮的事件处理程序,以便在脚本部分的同一页面上运行,但它没有被命中。
  • ---------------------------------------------- --------------------------------------------------按钮:
  • 编辑您的问题@SunilJadhav 而不是评论...
  • Onclientclick 事件中你的函数名称不同

标签: asp.net


【解决方案1】:

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?

【讨论】:

    【解决方案2】:

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

    在 Internet Explorer 中启用脚本调试

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-03-18
      • 1970-01-01
      • 2014-02-03
      • 1970-01-01
      • 2018-05-23
      • 1970-01-01
      • 2011-12-01
      • 2010-10-13
      相关资源
      最近更新 更多