I am a JS rookie, looking to become a JS monster, which implies tons of debugging.
I am using Chrome debugger tools. In front of me, lies a huge array of spaghetti JS code that looks like Da Vinci's code to decipher. I need to debug this and get a hang of what is going on. Essentially, I want to find out what function in the .js file is being called upon a specific event. To do this, I set up 'Event Listener Breakpoints' to take note of any Mouse Click events. And when I do click upon the button in question, this is what I get:

As you can see, the debugger does halt the script on the corresponding jQuery function that is about to execute on this turn of events. Unfortunately, this will be very general for all jQuery based functions and doesn't quite help matters. What I am really interested in knowing is the function in MY JS file that triggered the jQuery function, not what is being called upon in the jQuery library.
Illustration:
$('#myButton').live('click', function(){
$('#popUpMenu').close();
});
Is this the right approach to debugging Browser events ? Please ask me to ellaborate if this isn't clear enough.
