在IOS上调试Ionic应用程序? [英] Debug Ionic app on IOS?

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

问题描述

我的HTML5应用程序由Ionic打包(使用Cordova),并像普通应用程序一样加载到我的iPhone上。

My HTML5 app is packaged by Ionic (using Cordova) and loads onto my iPhone like a normal app.

我可以在连接到设备时进行调试我知道与Android你有logcat和在浏览器我有开发工具,但在设备和浏览器上的应用程序之间有差异,我想知道为什么。

Can I debug whilst connected to the device? I know with Android you have logcat and in the browser I have dev tools but there are differences between the app on device and the browser and I want to know why.

任何

感谢

推荐答案


  1. 使用Safari进行调试。这对于调试混合应用程序很有用,但无法告诉您有关本机插件的输出。 http://webdesign.tutsplus.com / articles / quick-tip-using-web-inspector-to-debug-mobile-safari-webdesign-8787

  2. 打开项目并在Xcode中构建设备。这会显示整个设备的输出 http:// cordova。 apache.org/docs/en/3.5.0/guide_platforms_ios_index.md.html#iOS%20Platform%20Guide

  3. 使用Ionic CLI进行调试。使用 ionic run ios -l -c -s 标记将使用实时重新加载并将日志打印到控制台。 http://ionicframework.com/blog/live-reload-all-things-ionic-cli /

  1. Debug using Safari. This is good for debugging a hybrid app, but cannot tell you output related to native plugins. http://webdesign.tutsplus.com/articles/quick-tip-using-web-inspector-to-debug-mobile-safari--webdesign-8787
  2. Open the project and build to device in Xcode. This shows the output of the entire device http://cordova.apache.org/docs/en/3.5.0/guide_platforms_ios_index.md.html#iOS%20Platform%20Guide
  3. Debug with Ionic CLI. Using ionic run ios -l -c -s with the flags will use live reload and print the logs to the console. http://ionicframework.com/blog/live-reload-all-things-ionic-cli/

这篇关于在IOS上调试Ionic应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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