On Aug 13, 9:49 am, lingg <[email protected]> wrote:
> Hi folks,
>
> as it is my first post to this group, I want to acknowledge all the
> contributors that made firebug possible. I is fare the best tool for
> web development and makes my life much easier, thanks!

Thanks for the encouragement!

>
> I like a lot the feature, that makes the debugger break on every
> error. That really saves time! But there is one aspect you could
> improve: it is normal practice to user try-catch statements that
> except errors. Using both, the try statements and autobreak is not
> usefull as you are supposed to continue a lot of breaks.
>
> Is it possible to introduce a configuration to disable the autobreak
> at errors within try statements?

Yes, but this feature requires help from the internals of Firefox.
When an error occurs the callstack points to the error. To know if
there is a catch block we have to look at the enclosing blocks in
every function on the stack. But we have no access to the enclosing
blocks other than the names of variables declared.  We've asked for
this information, but we've asked for a lot of other things as well
but nothing come of asking. I guess we just have to wait for someone
in Mozillla to want such a feature.

What you can do as an alternative is to use Firebug > Console > mini-
menu > ShowStackTrace for errors, plus, when an error occurs, set an
error breakpoint and re-run. In the Console to the left of the error
you will see a place for setting the error breakpoint.

jjb
>
> Cheers,
> Christoph

-- 
You received this message because you are subscribed to the Google Groups 
"Firebug" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/firebug?hl=en.

Reply via email to