[android-developers] Re: Better JavaScript debugging for a WebView

2009-03-08 Thread Miguel Paraz
On Mar 5, 3:29 pm, Mattaku Betsujin wrote: > I've never seen errors like "undefined line: 0 source: undefined". All my > errors usually come with a source name and file name. > > How do you load the HTML into WebView. Do you do it the following way? > >           WebView.loadUrl("file:///android_

[android-developers] Re: Better JavaScript debugging for a WebView

2009-03-04 Thread Mattaku Betsujin
I've never seen errors like "undefined line: 0 source: undefined". All my errors usually come with a source name and file name. How do you load the HTML into WebView. Do you do it the following way? WebView.loadUrl("file:///android_asset/myfile.html"); On Wed, Mar 4, 2009 at 7:36 PM,

[android-developers] Re: Better JavaScript debugging for a WebView

2009-03-04 Thread Miguel Paraz
Hi, On Mar 5, 5:23 am, Mattaku Betsujin wrote: > 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 > Jav

[android-developers] Re: Better JavaScript debugging for a WebView

2009-03-04 Thread Mattaku Betsujin
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