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

查看:193
本文介绍了在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进行调试。使用离子运行ios -l -c -s 与标志将使用实时重新加载并将日志打印到控制台。 http://ionicframework.com/blog/live-reload-all- thing-ion-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天全站免登陆