Closed Bug 122534 Opened 23 years ago Closed 13 years ago

Ability in non-debug builds to send Error Console stuff to system console

Categories

(Core :: XPCOM, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED INCOMPLETE
Future

People

(Reporter: matt, Unassigned)

Details

Attachments

(1 file)

Currently, the stuff that goes to the JavaScript console only goes to the system console for debug builds. I'd find it useful to be able to activate this for non-debug builds, in the same way that you can now turn on the "dump()" function, which previously only worked in the debug builds.
Please measure the performance effects of any changes you make here (both with the pref on and off)....
Status: NEW → ASSIGNED
Target Milestone: --- → Future
*** This bug has been marked as a duplicate of 84204 ***
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
argh. At first glance these bugs looked identical, but now I see that they are not. Ignore dupe message.
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
Assignee: hewitt → js-console
Status: REOPENED → NEW
Attached patch patchSplinter Review
This patch uses an ENV var to turn on logging to stderr.
Attachment #210352 - Flags: review?(shaver)
Comment on attachment 210352 [details] [diff] [review] patch r=shaver! r=shaver! I'd kinda like another name for the variable, but I'll let bsmedberg pick it.
Attachment #210352 - Flags: superreview?(benjamin)
Attachment #210352 - Flags: review?(shaver)
Attachment #210352 - Flags: review+
Attachment #210352 - Flags: approval-branch-1.8.1?(benjamin)
Comment on attachment 210352 [details] [diff] [review] patch You need to check const char *env = PR_GetEnv("var"); if (env && *env)... because using the PR functions an empty environment variable is supposed to act the same as an unset var. Is XPCOM_CONSOLE_TO_STDERR too long?
Attachment #210352 - Flags: superreview?(benjamin) → superreview-
Attachment #210352 - Flags: approval-branch-1.8.1?(benjamin)
Summary: Ability in non-debug builds to send JavaScript Console stuff to system console → Ability in non-debug builds to send Error Console stuff to system console
Product: Core → SeaMonkey
Assignee: error-console → nobody
Component: Error Console → XPCOM
Product: SeaMonkey → Core
QA Contact: jrgmorrison → xpcom
Status: NEW → RESOLVED
Closed: 23 years ago13 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: