I have a customizable form element on a page from a library. I want to see what javascript events are fired when I interact with it because I am trying to find out which event handler to use.
How do I do that using Chrome Web Developer?
Similarly, you can right click on the target element -> select "inspect element" Scroll down on the right side of the dev frame, at the bottom is 'event listeners'. Expand the tree to see what events are attached to the element. Not sure if this works for events that are handled through bubbling (I'm guessing not)
this solution is a problem if it is mouse events you are after, as the breakpoint kills the flow
what if all events point to minified jquery i dont care about, how do i reach the function that uses that jquery.
Can it show custom events which were created by me? When I read that it changed lives that was the first thing I thought about. Do I miss something?
@MuhammadUmer You can blackbox jQuery so Chrome will skip it and go straight to your source code. developer.chrome.com/devtools/docs/blackboxing
I checked the framework listeners of the event listeners but still don't see the event listeners for Backbone. Any ideas?