0

Is there anyway I can figure out perhaps using firebug, when I click on a element the name(s)/body(s) of a function which get called.

for an example I want to know what are the Javascript functions that got triggered when I press tweet button.

Please note that I am not talking about eventLog, breakpoints, or anything that requires to modify the source code.

I found out that visual event is an amazing tool which can help to visualize all the events attached with different elements.

Brian Tompsett - 汤莱恩
  • 5,438
  • 68
  • 55
  • 126
nitesh sharma
  • 591
  • 2
  • 5
  • 15

1 Answers1

1

I don't know about Firebug, but in Webkit Inspector, under the Scripts tab, under Breakpoints, then Event Listener Breakpoints, you can select different types of events in a hierarchical structure (Keyboard, Mouse, etc, and under those, each individual event).

When the event is triggered, the debugger will break.

Linus Thiel
  • 37,636
  • 9
  • 103
  • 101