Any idea what is going wrong here?
Perhaps you don't have the javascript.options.showInConsole preference
enabled?
-myk
----- Original Message ----
From: "us...@domain.invalid" <us...@domain.invalid>
To: dev-ext...@lists.mozilla.org
Sent: Thursday, November 16, 2006 11:32:09 AM
Subject: Components.utils.reportError?
I have written a little add-on that runs in both FF 2 and T-Bird
1.5.0.8. In my code I call Components.utils.reportError() and pass in a
string. This is NOT inside a catch clause. I note that in T-Bird, the
string is shown in the JavaScript Console available from the Tools menu.
However, in FF's ErrorConsole available from the Tools menu, I do not
see any entry.
Any idea what is going wrong here?
_______________________________________________
dev-extensions mailing list
dev-ext...@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-extensions
Thanks so much! Seems this is on by default in T-Bird (config editor
shows it = true but NOT highlighted) and off by default in FF. Go
figure! Anyhow, this is working now.
However, using the console service's logStringMessage() seems to place
an entry regardless of the setting of this option. So it may be better
to use that service for errors as well since it works regardless of this
setting.
Cheers!
> Thanks so much! Seems this is on by default in T-Bird (config editor
> shows it = true but NOT highlighted) and off by default in FF. Go
> figure! Anyhow, this is working now.
>
> However, using the console service's logStringMessage() seems to place
> an entry regardless of the setting of this option. So it may be better
> to use that service for errors as well since it works regardless of this
> setting.
That may be true for string messages, but reportError() handles
exceptions in addition to text strings, so it's preferable inside
catch() statements or anywhere you don't know if you're getting a string
or an exception.
In fact, I'd venture to assert that it's better to use reportError()
even when you know you're getting a string, since then you don't bother
users who don't necessarily want to know about errors in your code.
-myk
----- Original Message ----
From: Myk Melez <m...@mozilla.org>
To: dev-ext...@lists.mozilla.org
us...@domain.invalid wrote:
-myk
Seemed kinda odd considering I THINK it worked...
Any ideas?
æric
"Eric H. Jung" <eric...@yahoo.com> wrote in message
news:mailman.1124.11637090...@lists.mozilla.org...