admin管理员组文章数量:1294642
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
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
Share Improve this question asked Mar 7, 2012 at 10:01 MrSimonEmmsMrSimonEmms 1,4813 gold badges18 silver badges35 bronze badges 1- 2 you shoud accept an answer to mark this question as solved... – Christoph Commented Mar 26, 2012 at 12:59
4 Answers
Reset to default 10In 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.
I suggest that you get started with the "Using FireBug Console for Faster JavaScript Development" tutorial.
You could add a console.log()
to every click method. Or simply add an Event listener to the document and console.log()
some details or the event when something is clicked.
You can use the Firebug Profiler, e.g. by calling profile() in the console before your action and profileEnd() after the action. Firebug will then tell you which methods have been executed in the meantime (incl. lots of information about it).
本文标签: jqueryHow do I use Firebug to tell me what JavaScript is being firedStack Overflow
版权声明:本文标题:jquery - How do I use Firebug to tell me what JavaScript is being fired? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741603307a2387827.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论