Using Firefox, how can I monitor all events that are fired?

后端 未结 3 807
被撕碎了的回忆
被撕碎了的回忆 2020-12-12 13:51

I\'m trying to debug a web page that makes heavy use of events, and so I need to monitor all events that are fired.

Most of the events are bound using jQuery. Henc

3条回答
  •  离开以前
    2020-12-12 14:31

    This doesnt exist in Firebug I believe, and the underlying problem is lack of support or lack of exposure at the api level. Alternatively, there's only a few ways to subscribe to DOM events: Element.prototype.addEventListener (and window.addEventListener and document.addEventListener and XMLHttpRequest.addEventListener and some others) aside from 'onevent' properties which are observable and interceptable.

    But realistically, the WebKit debugger and Chromium's debugger (which is webkit's with extra points) allow one to debug and observe attached listeners. Sometimes it's easier to debug one browsers's bugs in another browser with better exposure of application/runtime state, even when that browser doesn't exhibit the bug.

    enter image description here

    https://developers.google.com/chrome-developer-tools/docs/elements

提交回复
热议问题