安卓:logcat的工作不为JS的console.log() [英] Android: Logcat is not working for JS console.log()

查看:1639
本文介绍了安卓:logcat的工作不为JS的console.log()的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序是Android原生,HTML5的组合。直到上周,我能够看到本土code和内日的WebView运行的JavaScript code中的日志信息。但突然logcat中没有显示在JavaScript控制台的消息,虽然它是表示我的家乡code日志消息。
任何想法?

My app is a combination of Android native, html5. Till last week I'm able to see the log messages from native code and javascript code running inside th WebView. But suddenly Logcat is not showing the console messages from javascript, though it is showing Log messages from my native code. Any ideas?

在此先感谢。
Venkat在

Thanks in advance. Venkat

推荐答案

对于刚刚Android原生&安培; HTML5(没有的PhoneGap /科尔多瓦),这包括如何在logcat中显示控制台消息。
<一href=\"http://developer.android.com/guide/webapps/debugging.html#WebView\">http://developer.android.com/guide/webapps/debugging.html#WebView

For just android native & html5 (not phonegap/cordova) this covers how to display console messages in logcat. http://developer.android.com/guide/webapps/debugging.html#WebView

的替代方法是使用jsconsole.com。远程调试覆盖在 http://jsconsole.com/remote-debugging.html

An alternative is to use jsconsole.com. Remote debugging is covered at http://jsconsole.com/remote-debugging.html

这篇关于安卓:logcat的工作不为JS的console.log()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆