如何使PhoneGap的,Android应用程序的调试工作? [英] How to make debug work for phonegap-android application?

查看:143
本文介绍了如何使PhoneGap的,Android应用程序的调试工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有我在Eclipse中使用的PhoneGap开发Android应用程序。现在,我使用警报来检查数据,但我需要调试器,因为它是采取非常长的时间来检查数据调试HTML和jQuery JavaScript的网页。我试图实现我的code在Android Studio中,但仍然没有调试器支持HTML页面。任何人都可以请帮我如何在Eclipse或Android工作室调试HTML?

I have an android application which i am developing in eclipse using phonegap. Right now i am using alerts to check the data but I need debugger to debug the html and jquery javascript pages as it is taking very long time to check the data. I tried to implement my code in android studio but still there is no debugger which supports html pages. Can anyone please help me with how to debug html in eclipse or android studio?

推荐答案

看一看这一次,纹波模拟器 - 它能够在Chrome浏览器的调试

Have a look at this once: Ripple Emulator - it enables debugging on Chrome browser.

为了调试,只要到应用程序的目录,然后运行它:科尔多瓦构建和放大器;&安培;科尔多瓦服务

In order to debug, just go to the app's directory and run it: cordova build && cordova serve

,然后在Web浏览器进行连接,例如

and then connect the web-browser to it, e.g.

的http://本地主机:8000 /安卓/ WWW / index.html的enableripple =科尔多瓦-3.2.0

同时,动车组的纹波可以用 GitHub上 - 只是一定要签出的文档,如何建立Chrome扩展。可替代地,它们也可在 Chrome网上应用店。它是否适合科尔多瓦3然而,仍然试图只是真的不知道。

Meanwhile the ripple emu is available on GitHub - just be sure to checkout the docs, how to build the Chrome extension. Alternatively, it's be available on the Chrome Web Store. Just not really sure if it works for Cordova 3 yet, still trying.

这篇关于如何使PhoneGap的,Android应用程序的调试工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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