3 ms·
Something I don't get about the Firefox developer tools is why they make the console logging unavailable if I've defined console as a window level variable, ove
by bellerocky 12y ago
Something I don't get about the Firefox developer tools is why they make the console logging unavailable if I've defined console as a window level variable, overwritten for the purposes of extending its behavior.
This only happens for the Firefox tools. Firebug, Safari and Chrome web inspector don't care. We do this so we can enable and disable console statements for debugging purposes. We monkey patched console, and because of that I can't use Firefox developer tools at all. It's a shame.
- mnemonik 12y agoWorks for me: > c = console Console { } > window.console = {} Object { } > c.log("hello") undefined "hello" If you could provide specific steps-to-reproduce and/or a test case, then dropping those in a bug is the best way to get the behavior fixed: https://bugzilla.mozilla.org/enter_bug.cgi?product=Firefox&component=Developer%20Tools%3A%20Console https://bugzilla.mozilla.org/enter_bug.cgi?product=Firefox&c...
- McGlockenshire 12y agoHave you created a minimal test case and filed a bug?