launchpad-dev team mailing list archive
-
launchpad-dev team
-
Mailing list archive
-
Message #06755
JavaScript step debugging
Hi, all.
I've had a couple occasions in the last 2-3 days where people didn't
know you can do step-wise debugging of JavaScript. So just in case
others are suffering in Y.log pain, I'll point out the debugger
statement, which works in all the developer/js consoles like Firebug
and Chromium's inspector.
Add "debugger;" anywhere to trigger the debug console:
function foo() {
debugger;
doingSomething(bar);
}
You can also go to the script tab in said tools and click a line
number and reload the page to trigger step debugging on the fly.
Hope that helps!
Cheers,
deryck
--
Deryck Hodge
https://launchpad.net/~deryck
http://www.devurandom.org/