From FirebugWiki

(Difference between revisions)
Jump to: navigation, search
(Added parameter description and examples)
m (Added categories)
Line 33: Line 33:
* [[undebug]]
* [[undebug]]
* [[Command Line API]]
* [[Command Line API]]

Latest revision as of 00:05, 22 November 2013

Adds a breakpoint on the first line of a JavaScript function.

This breakpoint can be managed via the Breakpoints Side Panel.


[edit] Syntax


[edit] Parameters

[edit] fn

Function to set the breakpoint at. (required)

[edit] Examples

Having the following function:

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

This sets a breakpoint at line 3 (console.log("test1");).

[edit] See also

Personal tools