Undebug
From FirebugWiki
(Difference between revisions)
Sebastianz (Talk | contribs) (Added description of syntax, hint for needing help and linked back to Command Line API) |
Sebastianz (Talk | contribs) (Added parameter description and examples) |
||
| Line 1: | Line 1: | ||
| - | + | Removes the [[Script Panel#Breakpoints|breakpoint]] on the first line of a JavaScript function. | |
| - | + | This breakpoint can also be removed via the [[Breakpoints Side Panel]]. | |
== Syntax == | == Syntax == | ||
| Line 7: | Line 7: | ||
undebug(fn) | undebug(fn) | ||
</source> | </source> | ||
| + | |||
| + | == Parameters == | ||
| + | === fn === | ||
| + | Function to remove the breakpoint from. '''(required)''' | ||
| + | |||
| + | == Examples == | ||
| + | Having the following function with a breakpoint at line 3: | ||
| + | |||
| + | <source lang="javascript" line="true"> | ||
| + | function test() | ||
| + | { | ||
| + | console.log("test1"); | ||
| + | console.log("test2"); | ||
| + | console.log("test3"); | ||
| + | } | ||
| + | </source> | ||
| + | |||
| + | <source lang="javascript"> | ||
| + | undebug(test) | ||
| + | </source> | ||
| + | |||
| + | This removes the breakpoint set at line 3 (<code>console.log("test1");</code>). | ||
== See also == | == See also == | ||
| + | * [[debug]] | ||
* [[Command Line API]] | * [[Command Line API]] | ||
Latest revision as of 09:27, 18 July 2012
Removes the breakpoint on the first line of a JavaScript function.
This breakpoint can also be removed via the Breakpoints Side Panel.
Contents |
[edit] Syntax
undebug(fn)
[edit] Parameters
[edit] fn
Function to remove the breakpoint from. (required)
[edit] Examples
Having the following function with a breakpoint at line 3:
function test()
{console.log("test1");
console.log("test2");
console.log("test3");
}
undebug(test)
This removes the breakpoint set at line 3 (console.log("test1");).