Debugger; keyword

From FirebugWiki
Revision as of 03:51, 8 June 2011 by Sebastianz (Talk | contribs) (Renamed "Options Mini Menu" to "Options Menu")

Jump to: navigation, search

To stop script execution at a specific line inside your code you can use the debugger; keyword. As soon as this line is reached, the execution is halted, Firebug switches to the Script Panel and a break notification is shown. Break notifications can be disabled by unchecking the "Show Break Notifications" option inside the Script Panel's Options Menu.


  function test(variable) {
    for(var i=0; i<10; i++) {
      if(i == 5)