Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you run one line of JavaScript at a time in Firebug?

So I just started using Firebug to debug JavaScript, and I have no trouble setting breakpoints, but how can I run one line at a time after hitting a breakpoint? Is there any way to do this without manually setting a new breakpoint each line?

like image 682
zjmiller Avatar asked Jul 01 '11 18:07

zjmiller


2 Answers

Have a look at the upper right corner:

Firebug

The button Step over which I annotated with Move to next line, executes the current line and goes to the next one. Step by step. To also execute called functions step by step, you have to click on Step into (annotated with Go into function call).

like image 74
Felix Kling Avatar answered Sep 27 '22 22:09

Felix Kling


Just press F11 to single step. Or press the "Step into" button.

like image 43
Guffa Avatar answered Sep 27 '22 21:09

Guffa