mattzeunert / javascript-breakpoint-collection

Find what code is causing a browser behavior.
https://chrome.google.com/webstore/detail/javascript-breakpoint-col/kgpjjblahlmjlfljfpcneapmeblichbp
136 stars 19 forks source link

Idea: Make it possible to deep watch an object #27

Open mattzeunert opened 8 years ago

mattzeunert commented 8 years ago
var obj = {
    hello: {
        world: {
            cake: 5
        }
    }
}
debugDeepPropertyAccess(obj, "hello");
obj.hello.world.cake = 8; // hits breakpoint

Would have to go through it recursively... And if new keys are added I think I'd have to use Proxy objects.

gidztech commented 8 years ago

I would like to take a look at this one first - a good for me.

mattzeunert commented 8 years ago

Tricky to do, but go ahead and have fun.