Firebug does not break errors

I reinstalled Firefox today because ... anything.

I reinstalled firebug, and now when I try to use it, everything is different. I believe that this is the same version as before. In fact, I even got over my trash and replaced the new firebug with the one I removed from the old Firefox. They ended up in the same version (1.5.3).

My problem is that when I had an error in my script somewhere, it was like this: if in the firebug script panel, the script breaks on an error, and the script page goes to an insulting line, lights up, and everything was right with the world.

Now it logs an error in the console and that it is. I spent most of the last hour trying to convince myself that it wasn’t worth the sore; However, I am losing the battle.

I searched Google, placed ads on Craigslist, even thought about becoming a policeman. There were some examples in Firebug dox, but none of them helped. A bunch of old links to the mysterious (break on all errors) option; an option that, I think, I could set by chance - on my pause button there is a red round circle (this is what she said), but there the script continues, all in its own way.

There was an explorer on the Firebug pages that talked about setting a breakpoint next to an error in the console. For some reason, I do not have such an opportunity. The line of code is in the console, but there is no breakpoint button next to it. However, this would not be ideal, even if it worked. I liked it when I could open the script page, and if there were errors, it would jump to this line. Then I could fix it and reload the page. If this line has been fixed, GREAT, to the next error on the page - which will be highlighted and ready.

I would like to offer you help.

Reference.


Someone indicated that I should press the pause button so that the program could pause errors. I got a little confused about this: the pause button has a small “play” icon on it. If I click on it, the button will come to life as if it is lit. But when the page is reloaded, it breaks onto the first line of one of the .js files (which is a comment), but does not interrupt the js error that I intentionally inserted there (a private function).


After playing a little further, I think my problem is that the error I inserted was in the middle of the page and not in the middle of the .js file: / If I put the error in the .js file, it works as I like.

Thanks everyone

+6
firebug
source share
3 answers

Switching the pause button on the console tab will result in a firebug error with JavaScript errors.

+11
source share

In recent versions, it did not violate errors by default.

You can also click on the circle next to the green line of the source code to enable or disable the special breakpoint, which is triggered only if an error occurs while executing this line.

Enabling or disabling special error breakpoint

+6
source share

the pause button under the console tab causes it to break and go to a specific error - for example. undefined function - however, if you just inject some garbage into your js file, for example. "fsdfsdfjsdkhfjksd" - then it does not go to the error, but displays the error on the console tab tab> errors sub tab ...

edit .. strange if you introduce garbage, for example. "def fsdfsdfsdfsdfsd" then this will not work, but if you enter the garbage - "fsdfsdfjsdkhfjksd" - it works! - weirdness! computers!

(ps there are no quotes around the garbage enclosed by plz!)

+1
source share

All Articles