PDA

View Full Version : console.log an object in android logcat



fizo
24 Jan 2012, 3:41 AM
I am developing a sencha touch application on android, and im using my phone for debugging. I am trying to view the items in a store when i click on a button.
Using a web browser, i can easily type `console.log(store)` in the console and get to see what's in the store, however if i try doing that in my code on the phone what i get in the LogCat is just `[object Object]`.


How i can log the store and the items/data in it.
Thanks.

mitchellsimoens
24 Jan 2012, 10:05 AM
Have you tried using weinre for remove debugging?

fizo
25 Jan 2012, 6:13 AM
Yeah thanks, i found it online a while after making the post. I initially thought it only worked on IOS