你能说出Phonegap iOS应用程序中的调试过程吗? [英] Could you tell be debug process in Phonegap iOS application?

查看:161
本文介绍了你能说出Phonegap iOS应用程序中的调试过程吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发iOS手机间隙应用程序。我想知道iOS手机间隙应用的任何好的调试过程。

I am developing iOS phone gap application. I want to know any good debug process for iOS phone gap application.

推荐答案

随着iOS 6的发布,Apple发布了远程Web与Mac Safari 6一起使用Mobile Safari的Inspector,这是巨大的。基本上,您可以在常规Safari中为您的移动应用程序(包括Phonegap应用程序)提供Web Inspector的所有功能和强大功能。
以下是它的工作原理,
需要xCode 4.5+运行iOS 6+模拟器(或iOS 6+设备)和Safari 6 +。

With the release of iOS 6, Apple released remote Web Inspector for their Mobile Safari in conjunction with Mac Safari 6, and this is huge. Basically you have all the features and power of Web Inspector in regular Safari, for your mobile apps, including Phonegap apps. Here's how it works, Requires xCode 4.5+ running an iOS 6+ simulator (or an iOS 6+ device), and Safari 6+.

步骤:


  1. 在ios6模拟器或ios6设备中,打开设置 - > Safari - >
    高级 - > Web Inspector - >(打开)。

  2. 运行phoneGap / Cordova应用程序。

  3. 在Safari 6+(来自Mac)中,访问开发菜单中的ios Simulator或ios设备。您可以在Safari的高级
    首选项中启用开发菜单。

  4. 现在您可以使用Web Inspector调试应用程序。

  1. In your ios6 simulator or ios6 device,open settings --> Safari --> Advanced --> Web Inspector --> (turn On) .
  2. Run your phoneGap/Cordova app.
  3. In Safari 6+ (From Mac), access ios Simulator or ios device from the Develop menu. You can enable Develop menu in Safari's Advanced Preferences.
  4. Now You can debug the app using Web Inspector.

如需更多信息,请在 http://www.mobilexweb.com/blog/iphone-5-ios-6-html5-developers

这篇关于你能说出Phonegap iOS应用程序中的调试过程吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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