Android:API 级别低于 19 的远程 webview 调试? [英] Android: Remote webview debugging for API level below 19?

查看:36
本文介绍了Android:API 级别低于 19 的远程 webview 调试?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我了解通过 chrome://inspect 进行的远程调试已在 API 级别 19 中添加到 Web 视图中.但是,我正在开发一个支持 17+ 设备的应用程序.只是在 API 19 上,我得到 02-28 00:31:16.569 12332-12332/package E/Web Console: Uncaught SyntaxError: Unexpected token ILLEGAL at null:1 这不是很有帮助.

I understand that remote debugging via chrome://inspect was added in API level 19 for webviews. However, I'm developing an app which supports devices 17+. Its just that on API 19, I get 02-28 00:31:16.569 12332-12332/package E/Web Console: Uncaught SyntaxError: Unexpected token ILLEGAL at null:1 which is not very helpful.

有没有其他方法可以为API调试android webview <19?至少我能看到 JS 控制台吗?

Is there any other way to debug android webview for API < 19? At least can I see JS console?

推荐答案

推荐Android 4.4以下的JavaScript控制台API

The recommendation is to the the JavaScript console API for below Android 4.4

https://developer.android.com/guide/webapps/debugging.html

但是,如果您想要不那么直接的手动操作,请参阅:

But if you want something less directly manual see:

请参阅:如何在 Android 上调试 javascript?

并专门寻找 Cordova/Weinre 或其他基于 JavaScript 的调试框架之类的东西.

and specifically look for things like Cordova/Weinre or other JavaScript based debugging framework.

这篇关于Android:API 级别低于 19 的远程 webview 调试?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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