views:

80

answers:

1

Hi,

Where does Firefox store the contents (text messages) of the Error Console. The errors, warnings, messages etc. are stored somewhere as Firefox retains them even if the browser is closed and re-opened.

I tried to search the entire profile folder but couldn't find out which file or sqlite DB these error console messages are written to ?

Does anyone have idea about this ?

Thanks in advance.

+3  A: 

No, Error Console is cleared if you close Firefox and re-open it.

Error Console isn't tied to a particular browser window, so while Firefox runs, the messages are retained even if you close and open some windows. During the lifetime of the application, the messages are stored in memory (code link).

If you're looking for a way to dump messages that appear in the Error Console to a file, it's possible to do that, but I don't remember off-hand and don't want to look for it unless that's what you're interested.
[edit The best I could find was this]

[edit] if you indeed see this, are you sure it's just base Firefox? Maybe it's some of the extensions you've installed? (Though it would be weird to implement messages persistence in the Error Console.)

Nickolay
Nickolay, you are right. The console is cleared when Firefox is restarted. To check that no extension retains the console contents, I created a new profile with no add-ons and tested.Yes, my primary purpose, I want to know this is I want to be able to write messages that appear in the Error Console to a file. Please post how this can be done. Is there any extension?
akjain
Sigh, I looked for 15 minutes and didn't find it. The best I could find is a helper file from Firefox (looks to be self-contained), which can be used to do this: http://mxr.mozilla.org/mozilla-central/source/toolkit/components/url-classifier/content/moz/debug.js#577
Nickolay