I have a variable in my javascript file that keeps getting changed and I can't figure out why or when it is getting changed.
Is there a way to set a breakpoint or something when the variable gets changed? I'm currently using Safari on a Mac but also have Chrome installed so if there is an easier way in Chrome Developer Tools I can do that as well. Or of course if there is a separate tool that allows for this type of debugging that is awesome as well.
Is this even possible? If so how?
Thanks so much in advance.