I suppose it can't be guaranteed that console.log will 'work' until
after you get a 'deviceready' event. I think you should write a bug up
though. I have a similar issue with weinre, it seems like we could at
least queue up the messages until the native hookup is ready ...
> - If you log a JS object using console.log, it will just print
> "Object" by default. You must JSON stringify it to be useful.
Open a bug. I also had this issue in weinre, which I fixed at some
point. Emulating current browser semantics for the output rendering
isn't a huge problem (I think).
> - The WebView browser silently fails on JS errors - it stops running
> the JS code and does not report the error. To see the error, you must
> wrap the offending code in a try/catch block.
I wrote this little utility a while back, which monkeypatches some of
the callback-based functions in the browser, so that the callback is run
with a try/catch, and some info will be dumped to the console when an
exception occurs. Something very similar will be included in the next
version of weinre.
https://github.com/pmuellr/log-callback-error
--
Patrick Mueller - http://muellerware.org
That utility looks great. Will the next version of weinre be on
debug.phonegap.com?
> --
> You received this message because you are subscribed to the Google
> Groups "phonegap" group.
> To post to this group, send email to phon...@googlegroups.com
> To unsubscribe from this group, send email to
> phonegap+u...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/phonegap?hl=en?hl=en
>
> For more info on PhoneGap or to download the code go to www.phonegap.com
>