How can I use Firebug to tell me that JavaScript is running?

I'm trying to reverse engineer JavaScript, and paradoxically, JS is not terribly clear or well documented. I have a series of events that were fired (using jQuery) that I need to find where the function is located.

Is there a way to configure Firebug (or Opera / IE consoles, not Chrome / Safari) so that I can see what events are fired when a button is clicked?

thanks

+6
source share
4 answers

In firebug, select the console tab. Click on the profile, do your activity on the page, click the profile again ... The list of the called function will be listed below in the firebug panel.

+10
source

I suggest you start with the tutorial Using FireBug Console for Faster JavaScript Development .

+1
source

You can add console.log() to each click method. Or just add an event listener to the document and console.log() some information or an event when something is clicked.

0
source

You can use Profiler Firebug, for example. by calling profile () in the console before your action and profileEnd () after the action. Firebug will then tell you which methods have been executed during this time (including a lot of information about this).

0
source

Source: https://habr.com/ru/post/910149/


All Articles