如何在web视图中的Andr​​oid调试JavaScript [英] How to debug javascript in webview in android

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

问题描述

我有一个在iOS上正​​常工作一个web视图,而不是机器人。是否有一个工具,在那里我可以连接到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模拟器,打开web视图窗格中,在我的桌面浏览器我听端口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.

我要寻找为Android类似的工具,或者至少让我开始调试。

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

推荐答案

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

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

如果你不想设置它自己,还有托管在 http://debug.phonegap.com 一个实例

If you don't want to set it up yourself, there is an instance hosted at http://debug.phonegap.com

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

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