开发者

console.log is not working in Android 2.1 emulator

开发者 https://www.devze.com 2022-12-28 16:38 出处:网络
I\'m running one web application...in an Android emulator browser.In one javascript file I\'m trying to output some string as:

I'm running one web application... in an Android emulator browser. In one javascript file I'm trying to output some string as:

console.log("android");

But I d开发者_高级运维idn't got this log using adb logcat.

I even tried to start adb logcat firstly and then tun the app, but didn't get a log message which I used in console.log

Is there any way I can get my log message?


There is some info about this on the nitobi/phonegap blog:

http://blogs.nitobi.com/joe/2010/02/26/console-log-on-android-webview/


I don't think Android's browser supports console.log, nor do I believe it is possible to write to logcat from within the browser.

0

精彩评论

暂无评论...
验证码 换一张
取 消