My HTML5 app is packaged by Ionic (using Cordova) and loads onto my iPhone like a normal app.
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.
Any help appreciated.
Thanks
There are three primary options.
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/ Similar to the first answer, here's how I debug on iOS.
ionic emulate ios -lc
Which runs app using simulator and outputs console logs and errors to terminal with live reloading.
You can use Visual Studio Code with the following extension: https://marketplace.visualstudio.com/items?itemName=vsmobile.cordova-tools
Regards, Nicholls
我还要补充一点,在Ionic 1.2中,您可以通过ionic serve
或ionic emulate
在Terminal中获得控制台/错误输出。
只是一个更新,来自 OSX: ionic serve ios -l -c -s
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.