Difference between revisions of "Undebug"

From FirebugWiki
Jump to: navigation, search
(Separate Command Line API page for undebug())
 
(Added parameter description and examples)
(One intermediate revision by the same user not shown)
Line 1: Line 1:
Removes the breakpoint on the first line of a JavaScript function.
+
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 ==
 +
<source lang="javascript">
 +
undebug(fn)
 +
</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 ==
 +
* [[debug]]
 +
* [[Command Line API]]

Revision as of 02: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.

Syntax

undebug(fn)

Parameters

fn

Function to remove the breakpoint from. (required)

Examples

Having the following function with a breakpoint at line 3:

1 function test()
2 {
3     console.log("test1");
4     console.log("test2");
5     console.log("test3");
6 }
undebug(test)

This removes the breakpoint set at line 3 (console.log("test1");).

See also