Javascript functions called in Chrome

When debugging a site, is there a way to have a stack-like thing in order to have an idea of ​​all the functions being called? For example, to find out what happens when I click a link?

I know that some function is called, but I do not know what.

+6
source share
2 answers

Go to the "Scripts" tab in the Google Chrome Developer Tools and set the Event Listener breakpoint to the click event (or something else) and press "up". Then it will stop executing immediately, and you can manually go through the whole process of execution using the function.

+3
source

console.trace() is your friend.

+1
source

Source: https://habr.com/ru/post/906456/


All Articles