Javascript on a page in Internet Explorer (8 and 9) with Developer Tools open reaches console.log()
, which is defined - but nothing appears in the actual log.
Things tried:
- Double-checking with
alert()
s thatconsole
is defined and thatconsole.log
is a function. - Checking with
alert()
s before and after that the code does reach theconsole.log()
line, - Checking code for any IE fallbacks like
if(ie){console={log:function(){}}}
, removing links to libraries and checking code snippets for mentions ofconsole
- Checking IE's settings and enabling anything relating to debugging
- Checking that IE isn't broken by loading a 3rd party page with
console.log()
s (e.g. http://jsbin.com logs "init" and "runner") - Swapping
console
forwindow.console
So the console is there and active, but no console messages show up in the actual console (on either the Script tab or the Console tab).
What else could stop console.log()
from actually logging anything, even when Developer Tools is open and console.log
is a defined function?