|
|
|
|
|
by russellbeattie
949 days ago
|
|
I can never get watched variables to work. The scoping and updating rules for it are a mystery to me. I assume only global variables can be watched, but even then it never works as I expect, so I end up just flooding the log with values when testing. I've thought for years the console should add Data.gui [1] style UI for viewing/testing variable and settings values. You can see it action on this CodePen [2]. 1. https://github.com/dataarts/dat.gui 2. https://codepen.io/russellbeattie/full/kGxaqM |
|
Everything seems to work ok when the code is unrolled but as soon as it gets bundled, even if not minified, it seems that a lot of debugger features get broken, at least that's been my experience.
Note: I'm not a front-end engineer and I'm probably doing something wrong.