Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I use Firebug to tell me what JavaScript is being fired?

I'm trying to reverse-engineer some JavaScript and, annoyingly, the JS isn't terribly clear or well-documented. I've got a series of events that are fired (using JQuery) that I need to find where the function lives.

Is there a way of configuring Firebug (or the Opera/IE consoles - not Chrome/Safari) so that I can see what events are fired when I click a button?

Thanks

like image 769
MrSimonEmms Avatar asked Mar 07 '12 10:03

MrSimonEmms


2 Answers

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

like image 151
sandeep Avatar answered Nov 13 '22 16:11

sandeep


I suggest that you get started with the "Using FireBug Console for Faster JavaScript Development" tutorial.

like image 1
Mikhail Avatar answered Nov 13 '22 16:11

Mikhail