I've got two variables pointing at the same object. At some time one of the variable changes its reference to another object.
Are there any debugging tools or techniques to find out place where the link breaks?
I've got two variables pointing at the same object. At some time one of the variable changes its reference to another object.
Are there any debugging tools or techniques to find out place where the link breaks?
You can set a breakpoint in your Chrome developer tools under the Sources tab. When this code is reached, you can see the current scope and all its variables/values on the right hand side under the Scope panel. Then just navigate through the functions using the controls above it and see when the values change.