在iPhone上运行的Sencha Touch应用中访问控制台 [英] Get access to console in Sencha Touch app running on iPhone

查看:102
本文介绍了在iPhone上运行的Sencha Touch应用中访问控制台的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的Sencha Touch iOS应用中使用console.time('a')和console.timeEnd('a').此功能可在控制台上打印以毫秒为单位的测量时间.

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.

在iPhone上运行我的应用程序时如何访问控制台?

我尝试使用Safari远程Web检查器(例如 Phonegap iOS Safari调试工作流) ,但不起作用.它使我可以访问index.html,并且Web Inspector可以正确打开,但是他的所有选项卡都是空的,包括控制台选项卡.

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.

(我尝试将Safari远程Web检查器与PhoneGap一起使用,并且可以正常工作)

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


我不使用Xcode,因为我正在用Sencha Cmd构建我的应用程序.而且,我不想更改它,因为我正在测试不带PhoneGap的Sencha Touch性能.


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.

推荐答案

有一个

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

这篇关于在iPhone上运行的Sencha Touch应用中访问控制台的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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