I print out my object to the console. It clearly shows that the value of field locked
is true
. However, unfolding it to view closer details, shows the value of false
. At the same time!
I perfectly understand it’s not black magic, so the value only can be one of those at the same time. It means that the rendition of the value to the console somehow gets affected. Restarting the browser, the computer and switching between Edge and Chrome give no change. It also happens at another computer.
I suspect that it’s something with the applications wire-up that confuses the browser. However, due to the size of the application, I can’t post a minimal, reproducible example. I’ll have to break it down piece by piece until I find the issue (which will be outside the scope of this question).
What I wonder is a good way to poke around it. What could I test and how can I inspect deeper (than the usual consoling out etc.).
The code says precisely this.
console.log('vm', this.vm.rows);
this.vm.rows.forEach(a => console.log('WTF', a));
I seem to get correct printout on the first line but not when I iterate. (The same weirdness occur when I use .map(...)
too. It’s like iteration causes something. But it makes no sense to me…