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
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 to share