Try adding the line debugger;
and inspect the call stack - or just simply set a breakpoint on the console.log()
line.
how to know, in which line the value of a JS object property was changed
-
07-08-2022 - |
質問
I am using the object.watch method.
obj[i].position.watch("x", function (id, oldval, newval) {
console.log( "Object " + id + " changed from " + oldval + " to " + newval );
return newval;
});
How do I find out, where in my code(which .js file, which line) this value is getting changed?
解決
所属していません StackOverflow