Watch.JS icon indicating copy to clipboard operation
Watch.JS copied to clipboard

Inspect watched object in console?

Open wkrsz opened this issue 12 years ago • 2 comments

Before watching the object is easy to inspect in the console:

screenshot_6_15_13_9_22_am

After watching it looks like a bag of setters and getters: screenshot_6_15_13_9_14_am

I suppose WebKit will get better at this. In the mean time, is there are way to inspect encapsulated values?

wkrsz avatar Jun 15 '13 07:06 wkrsz

True, this is a pain currently... Developing on the browser at least.

qrpike avatar Jul 10 '13 17:07 qrpike

You are right, but we implement WatchJS using getters and setters, I think you could

console.log(JSON.stringify(obj));

I know it is not ideal, but...

melanke avatar Sep 11 '13 14:09 melanke