The default bug view has changed. See this FAQ.

Put dump() calls in debugger code behind a pref

RESOLVED FIXED in Firefox 13

Status

()

Firefox
Developer Tools: Debugger
P2
normal
RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: past, Assigned: past)

Tracking

Trunk
Firefox 13
Points:
---
Dependency tree / graph
Bug Flags:
in-testsuite +

Firefox Tracking Flags

(Not tracked)

Details

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

Attachments

(1 attachment)

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.
Blocks: 676586
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.

Comment 4

5 years ago
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.

Comment 5

5 years ago
(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
Created attachment 603316 [details] [diff] [review]
Working patch

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]
https://hg.mozilla.org/integration/fx-team/rev/1fd0ed258309
Whiteboard: [land-in-fx-team] → [fixed-in-fx-team]
https://hg.mozilla.org/mozilla-central/rev/1fd0ed258309
Status: ASSIGNED → RESOLVED
Last Resolved: 5 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+

Comment 13

5 years ago
This is being addressed in bug 734314.
Depends on: 734314
You need to log in before you can comment on or make changes to this bug.