Debugger; keyword

From FirebugWiki
Revision as of 10:35, 18 April 2011 by Cadorn (Talk | contribs)

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 Mini Menu.


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