在iOS上的独立Web应用程序的调试控制台 [英] Debugging console for stand-alone web app on iOS

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

问题描述

在iPad上测试我的网络应用程序时,我可以启动Safari Mobile的调试控制台,并高兴地阅读我的日志输出。我找不到一个独立应用程序的方式,这意味着网络应用程序被添加到主屏幕,而window.navigator.standalone标志则表示正确,但是没有调试控制台横幅顶部就像Safari Mobile中一样。

When testing my web app on the iPad, I can enable the debugging console of Safari Mobile and happily read my logging output. I can not find a way to do the same for a stand-alone app, meaning the web app was "added to the home screen" and the window.navigator.standalone flag says true, but there is no "Debug Console" banner at the top like there is inside Safari Mobile.

我有一个错误,只发生在独立模式,几乎准备好添加一个调试控制台到我的网络应用程序,或者更糟的是,转到可怕的警报调试方法。

I have a bug that only happens in stand-alone mode and am almost ready to add a little debugging console to my web app, or worse, go to the dreaded alert debugging method.

所以,任何awSOme的想法?

So, SO, any awSOme ideas?

推荐答案

使用 http://www.iwebinspector.com - 仅适用于ios5和

use http://www.iwebinspector.com - only for ios5 and up though..

对于ios6,您可以使用safari6和远程调试 http://moduscreate.com/enable-remote-web-inspector-in-ios-6/

for ios6 you can use safari6 and remote debugging http://moduscreate.com/enable-remote-web-inspector-in-ios-6/

如果你不在mac或想要真正的远程调试,你可以使用 jsconsole.com

if you are not on mac or want true remote debug, you can use jsconsole.com

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

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