Debugging which function was started using Firebug
There is a Firebug extension called EventBug. There are actually quite a few extensions for Firebug that are amazing.
http://getfirebug.com/wiki/index.php/Firebug_Extensions#Eventbug
EventBug allows you to see the event functions that are bound to an element and set breakpoints in their handlers.
source to share
You can also try using Firebug's "Break on next" function when it's in the Script Tab. Once enabled, it will abort whenever any Script is executed.
However, this has a disadvantage: if you are using a framework that listens for mouse events globally (for example, attached to <body>
), you will get a breakpoint whenever you move the mouse, so it is completely useless.
Also, when there is a specific timeout that fires before you can create your event (like a mouse click), the break will happen in that timeout.
source to share