Debugging: Is it possible to see value of JS variable in real time?
问题 Is there any tool (preferably extension/add-on to any browser) that allows you to see all the value changes of the desired JS variable in real time? Previously I did something like this (in pure JS): var someVariable; var previousValueOfSomeVariable; var f = function() { if (previousValueOfSomeVariable != someVariable) { console.log(Date.now(), someVariable); previousValueOfSomeVariable = someVariable; } } var TO = setInterval(f, 100); It did the trick, but was, of course, inefficient (in