JavaScript 调试:在每次 JavaScript 调用时停止/中断

发布于 2024-08-29 08:13:31 字数 255 浏览 4 评论 0原文

我正在处理一个复杂的遗留 javascript 代码库,并且很难弄清楚在哪里放置断点(我必须找到文件,在 firebug 中放置断点等)。

有没有办法让 Firebug 在每次遇到的第一个 javascript 执行时中断?

换句话说,每次我单击页面上的某些内容时,如果执行 JavaScript 代码,我希望 Firebug 在该行上中断?

当然,我不希望 Firebug 在执行其内部 javascript 时停止。

这可能吗?

I am dealing with a complex legacy javascript code base, and it's difficult to figure out where to put breakpoint (I have to find the files, put a breakpoint in firebug etc).

Is there a way so that Firebug breaks on the first javascript execution that it encounters every time?

In other words, every time I click on something on the page, and if a javascript code is executed, I want Firebug to break on that line?

Of course I don't want Firebug to stop when it executes it's internal javascript.

Is this possible?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

暗恋未遂 2024-09-05 08:13:31

是的,最新版本有一个[暂停]按钮。

您可以在这里阅读更多相关信息: http://getfirebug.com/doc/breakpoints/ demo.html#挂起

Yes, The latest build has a [pause] button for it.

You can read more about it here : http://getfirebug.com/doc/breakpoints/demo.html#suspend

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文