3 ms·
Sometimes you wanna see the value of a variable but it's inside a hot function and ends up spamming/freezing your console if you log it. Not quite a console.lo
by ehsankia 6y ago
Sometimes you wanna see the value of a variable but it's inside a hot function and ends up spamming/freezing your console if you log it.
Not quite a console.log statement, but Live Expression in DevTools is pretty useful for that. It's the little "eye" next to filter at the top, and it'll constantly watch an expression and show the latest value. Worst case you can assign your value to `window.myValue` and put a watch on that.