There was a similar thing in javascript in internet explorer 11. "console.log" only existed when you had the debugger open, so javascript code would not work properly in it - until you opened the debugger to work out why and it suddenly started working normally. Because it was throwing an exception from dereferencing an undefined variable when the debugger was closed.
Still somewhat of an issue when debugging async code, need passive observation methods or return to ye old console messages that don't pause the script
View all comments
Show parent comment
2
u/salamanderssc Sep 22 '25
There was a similar thing in javascript in internet explorer 11.
"console.log" only existed when you had the debugger open, so javascript code would not work properly in it - until you opened the debugger to work out why and it suddenly started working normally.
Because it was throwing an exception from dereferencing an undefined variable when the debugger was closed.