Add debug filter item to the Web Developer toolbar dropdown in Web Console

RESOLVED WONTFIX

Status

()

Firefox
Developer Tools
RESOLVED WONTFIX
7 years ago
6 years ago

People

(Reporter: rc, Assigned: sonny)

Tracking

({dev-doc-complete})

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [good first bug])

(Reporter)

Description

7 years ago
followup from bug 616742.

The other console api functions (log, info, warn, error) have filter options on the web console's toolbar. We should add one for debug as well when bug 616742 is landed.

Updated

6 years ago
Summary: Add a filter item to the Web Developer toolbar dropdown in Web Console → Add debug filter item to the Web Developer toolbar dropdown in Web Console

Updated

6 years ago
Whiteboard: [good first bug]
(Assignee)

Updated

6 years ago
Assignee: nobody → sonny.piers
(Assignee)

Comment 1

6 years ago
Hi, since debug is an alias for log, should we not rename the item "Log" to "Log/Debug" ?
As far as I understand the code, console.debug() trigger a log message.
(Assignee)

Comment 2

6 years ago
As discussed on IRC there is 3 options:

1) We modify the log filter menuitem to display "Log/Debug" instead of "Log"
2) We split log and debug so there are 2 different events triggered, and add a menuitem for debug filtering
3) We keep the current behavior (debug as an alias for log) and this is a wontfix

I think the best solution is 3 because we added console.debug() only for some websites breakages. (console.debug() is a firebug thing)

It is the chromium behavior. On node.js there is no console.debug method. On Opera dragonfly, log and debug have the same behavior and the web console output cannot be filtered. 

If we think the third solution is the good one (at least for the moment), we probably should explicitly deprecate the debug method in the web console documentation on MDN.

Comment 3

6 years ago
(In reply to Sonny Piers [:sonny] from comment #2)
> 3) We keep the current behavior (debug as an alias for log) and this is a
> wontfix

This choice seems fine to me, as long as we don't find users complaining about it being confusing.

Comment 4

6 years ago
Can we won't fix this bug then?
(Assignee)

Updated

6 years ago
Whiteboard: [good first bug] → [good first bug][dev-doc-needed]
(Assignee)

Updated

6 years ago
Status: NEW → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → WONTFIX
(Assignee)

Comment 5

6 years ago
Sheppy, how could we update the documentation on console API in such a way we don't encourage people to use console.debug ?
(Assignee)

Updated

6 years ago
Keywords: dev-doc-needed
Whiteboard: [good first bug][dev-doc-needed] → [good first bug]
I've added a note to:
https://developer.mozilla.org/en/Using_the_Web_Console#section_6

Should be explicit enough :-)
Keywords: dev-doc-needed → dev-doc-complete
You need to log in before you can comment on or make changes to this bug.