In Safari with no add-ons (and actually most other browsers), console.log will show the object at the last state of execution, not at the state when conso
console.log
conso
There is an option to use a debugger library.
https://debugjs.net/
Just include the script into your web page and put log statements.
Logging
var test = {a: true} log(test); // {a: true} test.a = false; log(test); // {a: false}