I have a JavaScript variable called
var someProperty;
on line, let's say 10000 (its a huge js file), I have a function
function updateTime() {
console.log(someProperty.time); //i actually get an value here
}
I want to find out the function that is changing the value of the property I tried setting breakpoint using Chrome dev tools directly on that var someProperty
but received a value of "undefined" - which makes me believe a function is setting this variable. How can I find out or watch where this someProperty.time
property is being set?