I am trying to contribute to a large javascript codebase which uses a framework. I want to know which function is executed when I click on a button on a web page. I used the chrome debugger event listener mouse click option and found out the line of code executed due to button click. But the line of code cannot be found in my editor.
I am assuming that the chrome debugger is showing a built version of the codebase not the original one, due to which I cannot find it in my editor.
Is there a way to use VS Code Debugger or some other tool which will show the exact JS function/line of code executed when I click on a button ( the event ) on the web page?