How do I keep an eye on variables for Javascript development?

I am working on a WebGL project with Javascript and it is very difficult for me to track the error in my code.

In order to debug the program, I need a watchpoint controller , so I can check when the data with the changed variable changes.

I am currently using the Chrome browser, which does not have this feature in the development tool. Can anyone suggest me some advanced developer toolkit for Javascript debugging that has a watchdog function?

+3


source to share


2 answers


Check this

Instead of rewriting the variable name or expression that you want to test during your debugging session over and over, add it to the Watch Expression list. You update the values ​​if you change them directly, or just watch them change while your code is running



enter image description here

+2


source


If you are using Chrome you can try the experimental Object.observe ():



https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/observe

0


source







All Articles