Skip to content
This repository has been archived by the owner on Mar 22, 2022. It is now read-only.

Inspect watched object in console? #48

Open
wkrsz opened this issue Jun 15, 2013 · 2 comments
Open

Inspect watched object in console? #48

wkrsz opened this issue Jun 15, 2013 · 2 comments

Comments

@wkrsz
Copy link

wkrsz commented Jun 15, 2013

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?

@qrpike
Copy link

qrpike commented Jul 10, 2013

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

@melanke
Copy link
Owner

melanke commented Sep 11, 2013

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...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants