IE 10: debug console (F12) changes behavior
debugging, gwt, internet-explorer, javascript
Solution
Often times this is the result of an unchecked `console.log` in your script. Confirm that code writing to the console is preceded by a check to see if `window.console` exists.
var someVar = 1234;
//Fatal JS error, when devtools are closed:
console.log(someVar);
//Safely checked!
if (window.console) console.log(someVar);
Problem
I have an extremely strange issue: I try to debug (F12) a web application in IE 10. When the console is turned off the issue is active. As soon as the console is turned on (off) once, the issue disappears. What does the console change on the rendering engine or DOM tree? Is there a tweak how I can enable the console automatically? Without console: Screenshot With console (turned on for a couple of seconds): Screenshot Please let me know if you wish more details from my side.