Debugging User Defined Object Properties in JavaScript
Hello there!
I'm interested in finding a JavaScript debugging tool or addon that allows me to set breakpoints on user defined object properties.
For example:
Let's say I have a JavaScript Object Literal like this:
var TextBox = {
color:"gray",
size:"100px",
border:true
}
Now, I want to be able to put a breakpoint on TextBox.color, so that I can track any modifications made to this property and identify which function is responsible for the change.
The breakpoint should trigger when:
TextBox.color = null;
or
delete TextBox.color;
Does anyone know if Firebug or Chrome Developer Tools offer this feature already?
I've come across breakpoints for HTML element removal and attribute modification, but not specifically for user defined object properties.
Thank you for your help!