melanke / Watch.JS

watch the changes of any object or attribute
Other
2.14k stars 219 forks source link

Get location where change occurred? #97

Closed AvengerD closed 6 years ago

AvengerD commented 8 years ago

Is there any way to determine, where a change of an attribute has been initiated (which line in which Javascript file)????

I get reported the attribute change, but I need to know, where this change comes from.

melanke commented 8 years ago

this is an interesting feature but it was not implemented

beta-tank commented 7 years ago

@AvengerD you cant try use https://www.stacktracejs.com or answers from here http://stackoverflow.com/questions/591857/how-can-i-get-a-javascript-stack-trace-when-i-throw-an-exception in your callback to determine who change variable value.