Detect which function is called in another function with the dev tool

Viewed 22

I would like to be able to recognise which function is called when an action is executed. I know you can do "Inspect element", "Event listeners" and look for the function in the "click" category, the problem is that the site is made so that each action calls the same function which should probably be the entire source code.

So, is it possible to use the same tool on a specific function?

1 Answers

You can add a breakpoint to the function and when the code executes, you can see the call stack, you can see all the parent functions.

enter image description here

Related