Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to stop firebug from breaking on error in scripts?

I have firebug 1.9.1 and I noticed that when there are pages that have scripting errors it goes to that line. It is like I have a breakpoint on that line but I don't.

How do I stop this. I don't mind on the firebug logo it has an error count but I find it so annoying that it is opening firebug up to show me lines it stopped at.

like image 329
chobo2 Avatar asked Dec 21 '22 22:12

chobo2


2 Answers

For everyone thinking "But the pause button in the script panel is un-pressed! It's not flashing! Pressing it turns it on and pressing again to turn it back off makes no difference!"...

...check the other pause button in the Console panel. (If that's off too, check the third pause button under HTML, 'Break on mutate', or under Net, 'Break on XHR')

It's a bit of a gotcha because if the Console pause button is pressed, errors take you to the script panel to debug instead of showing the error message in the console panel... So you have to check the status of the panel you're not taken to...

The console panel pause button is Break on all errors: whereas the Script panel button only breaks on the next error. It's easy to forget you turned on Break on all errors, then not notice it's still on because you're focusing on the panel you weren't expecting to be taken to.

like image 199
user56reinstatemonica8 Avatar answered Jan 17 '23 04:01

user56reinstatemonica8


In each of the Firebug tabs, there is a "pause" button. The error console will thus break on errors, if that pause button is pressed. Just un-press that button.

like image 36
sroussey Avatar answered Jan 17 '23 03:01

sroussey