Get access to console in Sencha Touch app running on iPhone

南楼画角 提交于 2019-12-25 02:29:07

问题


I want to use console.time('a') and console.timeEnd('a') in my Sencha Touch iOS app. This functions prinnt measured time in microseconds on console.

How to get access to console while I'm running my app on iPhone?

I tried with Safari Remote Web Inspector (like Phonegap iOS Safari debug workflow), but it doesn't work. It give me access to index.html, and Web Inspector opens correctly, but all his tabs are empty including console tab.

(I tried used Safari Remote Web Inspector with PhoneGap and it works correctly)

EDIT:
I don't use Xcode, becouse I am building my app with Sencha Cmd. And I do not want to change that, because I am testing Sencha Touch performance without PhoneGap.


回答1:


There is a cordova plugin which you can use to see the output of console in XCode.



来源:https://stackoverflow.com/questions/25075392/get-access-to-console-in-sencha-touch-app-running-on-iphone

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!