【问题标题】:Breakpoint to stop when execution reaches any line of code in a certain source file当执行到达某个源文件中的任何代码行时停止断点
【发布时间】:2017-12-05 04:46:14
【问题描述】:

我的网络应用在 angularjs 上运行。

对于以下情况,我需要一个断点: - 我的应用程序触发了一些角度函数 - 铬开始深入有角,很多有角的内部东西已经完成 - 在某些时候,角度会调用我的回调函数之一。

我所有的函数都在一个名为 bundle.js 的文件中。我想设置一个断点,这样每当调用 bundle.js 中的函数时,执行就会中断。

这可能吗?

【问题讨论】:

    标签: javascript angularjs google-chrome-devtools


    【解决方案1】:

    您可以在 DevTools 中 blackbox Angular。然后,当您进入 Angular 代码时,Chrome 将继续运行,直到到达非 Angular 代码。

    【讨论】:

      猜你喜欢
      • 2012-04-05
      • 2018-07-20
      • 2018-04-05
      • 2021-07-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-12-24
      • 1970-01-01
      相关资源
      最近更新 更多