Phonegap - Xcode中的Javascript调试 [英] Phonegap - Javascript debugging in Xcode

查看:96
本文介绍了Phonegap - Xcode中的Javascript调试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个基于phonegap的项目。我想使用一些调试工具,能够调试一些变量等到XCode控制台等。现在,我发现,为了做到这一点,我需要调用函数console.log。

I am working on a phonegap based project. I'd like to use some debug tools, to be able to debug some variables etc into XCode console, etc. Now, I've found, that in order to do this, I need to call function console.log.

然而,问题是,当在模拟器中运行应用程序没有调试信息显示在XCode控制台...我使用phonegap版本0.9.3,我是什么做错了?

The problem is, however, when running the application in simulator no debug info is displayed in XCode console... I am using phonegap version 0.9.3, what am I doing wrong?

感谢回答

推荐答案

(两天前),并且不包括在0.9.3版本中。您可以在此机票问题跟踪器了解更多信息。

This feature was completed very recently (two days ago), and is not included in the 0.9.3 release. You can see this ticket in the issue tracker for more information.

要使这个工作,你必须从 PhoneGap GitHub存储库。从shell:

To get this working, you have to pull the latest code from the PhoneGap GitHub repository. From a shell:

$ git clone git://github.com/phonegap/phonegap-iphone.git

...然后从头开始构建源。您应该会看到它

... and then go about building up the source from scratch. You should see it then!

,请替换 console.log 语句与 debug.log ,这将工作在0.9.3。

Alternatively, you replace your console.log statements with debug.log, and that will work in 0.9.3.

这篇关于Phonegap - Xcode中的Javascript调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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