PhoneGap开发调试与插件使用全攻略
1. PhoneGap调试相关
调试在PhoneGap应用开发中至关重要。 http://debug.phonegap.com
可用于检查真实设备或模拟器中运行的内容,但开发时使用它存在一些问题:
- 开发过程中不想使用外部服务器。
- 希望节省带宽并提高调试速度。
debug.phonegap.com
由Weinre(web inspector remote)服务器提供支持。若要本地部署Weinre,可参考以下链接:
- 安装文档: http://phonegap.github.com/weinre/Installing.html
- 运行说明: http://phonegap.github.com/weinre/Running.html
在开发PhoneGap应用时,使用iPhone/Android模拟器测试代码既耗时又令人沮丧。为节省时间和精力,可使用Ripple PhoneGap模拟器,充分利用Chrome开发者工具加速开发。远程调试可使用 http://debug.phonegap.com
或本地安装的Weinre服务器,这有助于了解应用在iPhone/Android模拟器或实际设备上运行