如何在android中的webview中调试javascript [英] How to debug javascript in webview in android

查看:129
本文介绍了如何在android中的webview中调试javascript的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个网络视图在iOS上可以正常工作,但不是Android。有没有一个工具,我可以在浏览器中连接到Android Webview,并使用firefox或webkit控制台进行调试?
目前我不知道什么是导致Webview不能在Android中使用。

I have a webview that works fine on iOS, but not Android. Is there a tool where I can connect to Android webview in browser and debug it using firefox or webkit console? Currently I have no idea what is causing the webview not to work in Android.

在iOS中,我可以打开我的iPad或iPhone模拟器,打开webview窗格,在我的桌面浏览器中,我收听端口9999,它显示了我在webkit开发工具/调试工具中看到的工具。

In iOS I am able to open my iPad or iPhone simulator, open the webview pane, and in my desktop browser I listen to port 9999, and it shows me the tools you see in webkit developer tool/debugging tools.

我正在寻找类似的或者至少让我开始调试。

I am looking for similar tool for Android, or at least to get me started on debugging.

推荐答案

查看 weinre 。它提供了Chrome开发人员工具,用于从WebKit浏览器调试到在远程设备上运行的浏览器。

Check out weinre. It provides Chrome developer-like tools for debugging from WebKit browsers to browsers running on remote devices.

这篇关于如何在android中的webview中调试javascript的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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