We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(2)
Firebug (自 1.11 beta 1 起)通过
monitorEvents()
支持此功能。你可以这样做:(@Pierre:感谢您提到功能请求)
编辑: 也适用于 Chrome ,尽管当我尝试上面的代码时,我遇到了一个安全错误,即
document.domain
值不相同,因此这两个实现的行为可能略有不同。更新:我已提交了功能请求 向 Chrome 团队请求 postMessage 事件出现在时间线中。另外,我还发现了一个名为 JScript Tricks 的扩展,它可以注入任意 JavaScript 代码加载时进入页面。您可以向其中添加以下代码以在页面加载后监视事件。它工作得很好,尽管它可能会错过立即发生的事件(例如,在加载之前,如果可能的话)。
Firebug (as of 1.11 beta 1) supports this with
monitorEvents()
. You can do something like this:(@Pierre: thanks for mentioning that feature request)
EDIT: Also works in Chrome, though when I tried the above code I encountered a security error that the
document.domain
values were not the same, so the behavior of these two implementations may be slightly different.UPDATE: I have submitted a feature request to the Chrome team asking that postMessage events appear in the timeline. Also, I found an extension called JScript Tricks that can inject arbitrary JavaScript code into a page when it is loaded. You can add the following code to it to monitor events once the page loads. It works pretty well, though it might miss events that occur immediately (e.g. before onload, if that's possible).
已发出 Firebug 功能请求。
A firebug feature-request has been issued.