Closed Bug 709088 Opened 13 years ago Closed 13 years ago

Put dump() calls in debugger code behind a pref

Categories

(DevTools :: Debugger, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 13

People

(Reporter: past, Assigned: past)

References

Details

(Whiteboard: [fixed-in-fx-team])

Attachments

(1 file)

There are quite a few dump() calls in the debugger code currently. When we are past the initial development phase and approaching turning it on, we should get rid of them.
Priority: -- → P3
The removal deadline as per bug 697762 comment 53 is before the debugger migrates to aurora.
I'll get to this next week.
Assignee: nobody → past
Status: NEW → ASSIGNED
Priority: P3 → P2
In conversation about this today, Panos asked if he could put the dump()s behind a pref as the protocol is still changing and this is useful debugging information for us to have. The debugger is still preffed off by default, so I suggested just leaving them in rather than writing a patch for the sole purpose of hiding these debug statements. Mossop: Do you think it's reasonable to just leave these in while we finish this feature up? I'd prefer it, though could understand objections to leaving them in a release product.
How hard would it be to put the dumps behind a separate pref? Most go through a separate dumpn call already, we could update the rest to go through a special dump that checks a pref. We could consider leaving that pref turned on by default until we turn the debugger on by default.
(disclaimer: chatty debugger has been causing me trouble while working on the developer toolbar)
yeah, if it's annoying, then we can certainly hide it. Thanks!
I'm fine with the dumping not requiring a pref as long as the debugger defaults to off, but if you're going to want to leave it in then you might as well stick it behind a pref now anyway
Attached patch Working patch (deleted) — Splinter Review
This should do it.
Attachment #603316 - Flags: review?(rcampbell)
Comment on attachment 603316 [details] [diff] [review] Working patch looks fine.
Attachment #603316 - Flags: review?(rcampbell) → review+
Summary: Remove the dump() calls from debugger code → Put dump() calls in debugger code behind a pref
Whiteboard: [land-in-fx-team]
Whiteboard: [land-in-fx-team] → [fixed-in-fx-team]
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 13
Thunderbird: http://hg.mozilla.org/comm-central/rev/a7fa3f3063dc "Unit test bustage fix from bug 709088 - include devtools.debugger.log preference." SeaMonkey: (at least) is affected too. *** Why is this preference added at application level only when its (2) consumer is in Toolkit?
Flags: in-testsuite+
This is being addressed in bug 734314.
Depends on: 734314
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: