I just add a logging function to my JavaScript interface object. Something
like

class JSInterface {
    public void trace(String s) {System.out.println(s);}
}

Using this allowed me to develop and debug more than 3000 lines of
JavaScript in my app.


On Wed, Mar 4, 2009 at 10:18 AM, Miguel Paraz <mpa...@gmail.com> wrote:

>
> Hi,
> I'm debugging a Javascript+HTML app. All the content is in ./assets.
>
> The app works fine in Firefox, Safari and iPhone (over the web). But
> in the WebView, I only get:
> D/WebCore (  626): Console: undefined line: 0 source: undefined
>
> I need to debug this code. Could I either:
> - enable more debugging in the WebView? though I think this needs to
> be done in the framework.
> or:
> - set up a desktop WebView equivalent where I can run a Javascript
> debugging tool?
>
> Thanks.
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to