javascript - Debugging: Is it possible to see value of JS variable in real time? -



javascript - Debugging: Is it possible to see value of JS variable in real time? -

is there tool (preferably extension/add-on browser) allows see value changes of desired js variable in real time?

previously did (in pure js):

var somevariable; var previousvalueofsomevariable; var f = function(){ if(previousvalueofsomevariable!=somevariable){ console.log(date.now(),somevariable); previousvalueofsomevariable = somevariable; } } var = setinterval(f,100);

it did trick, was, of course, inefficient (in reality function bigger, while required object-copy function if variable object , farther checks)...

thanks in advance!!

update

i'm aware of console tools, i'd see history of changes, like:

somevariable

0ms: undefined;

10ms: 5;

40ms: 'someothervalue';

150ms: null

etc.

(ms given illustration purposes, not required). maybe can done in standard console, don't know how.

ah yes object.watch . isn't used though! here more detailed post of think you're looking listening variable changes in javascript or jquery

javascript google-chrome debugging firebug mozilla

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -