Is it posible to make logging to the console synchronous? I often run into situations where the code execution is faster than dumping the structures. That resolves in outputting already changed objects.
I sure can walk through the code with debugger, make unit tests etc., it’s just often convenient to simply console.log stuff just to make a general idea of what is going on.
You could create a copy of the object before passing it to
console.log. Look here for a function to create a deep copy of your object.Edit:
Now implemented in Chrome, see here