Reputation: 275
I've inherited a pretty large project and I'm trying to track down an annoying bug, but for the life of me I can't find where this specific action is getting called and executed. Is there any way to view Javascript calls as they happen? I can pause execution in Firebug but it always stops at an addDomListenerOnce call.
Upvotes: 2
Views: 190
Reputation: 8814
With Opera's Dragonfly you have the option "Break on first statement of a new script" (Thanks, @some)
It's the fifth button at top left corner.
Upvotes: 2
Reputation: 382092
All modern browsers offer debugging functions.
Look for example at the Chrome Developer tools debbuging functions. It's very easy to set breakpoints and to trace the execution line after line. Of course you have the call stack so you see where the function is called from.
Upvotes: 1
Reputation: 76870
you can add this line
debugger;
where you want. For example as the first line of the function you want to check if it's executed. This will halt the execution of the script and you can inspect everything in firebug.
Upvotes: 4