S
S
Sergey2015-06-11 09:00:18
JavaScript
Sergey, 2015-06-11 09:00:18

How to track JS events in Chrome?

I went to some site, there is some event hanging on the button, for example onClick() , How can I quickly find in which file this event is located? For example, I pressed a button, and the file and line number that started processing this action appeared in the console.
For a long time I found some similar plugin for chrome, but now I can’t remember it. There is no access to the site.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
S
Sergey Melnikov, 2015-06-11
@gangstarcj

in the console
will return an object in which you need to find an event and in it listener: function, right-click on the function -> Show function definition

S
Sergey, 2015-07-01
@gangstarcj

The Visual Event plugin seems to fit

A
anttoshka, 2017-03-27
@anttoshka

Didn't find a convenient way? Ran into this problem when migrating from FF. There in the tree house all events are shown.

D
Dmitry Shinkar, 2015-06-11
@DeadCowsDontMoo

You can catch events in the chrome console ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question