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?
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.