Debug
From FirebugWiki
Revision as of 09:21, 18 July 2012 by Sebastianz (Talk | contribs)
Adds a breakpoint on the first line of a JavaScript function.
This breakpoint can be managed via the Breakpoints Side Panel.
Contents |
[edit] Syntax
debug(fn)
[edit] Parameters
[edit] fn
Function to set the breakpoint at. (required)
[edit] Examples
Having the following function:
function test()
{console.log("test1");
console.log("test2");
console.log("test3");
}
debug(test)
This sets a breakpoint at line 3 (console.log("test1");).