Cordova应用突然在Xcode中没有控制台日志 [英] Cordova app suddenly has no console log in Xcode

查看:201
本文介绍了Cordova应用突然在Xcode中没有控制台日志的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的Cordova应用程序已在Xcode控制台中输出console.log。然后突然有一天(不确定发生了什么),它只是空白。我按照此处的说明进行操作,但没有任何效果 Xcode 4 -调试区域不再显示我的控制台输出(NSLog)

My Cordova app has been output console.log just fine in Console of Xcode. Then suddenly one day (not sure what happened), it just shows blank. I followed the instructions here but nothing works Xcode 4 - Debug Area no longer shows my console output (NSLog)

这是我所拥有的:

这始终显示但空白:

更新1

我尝试了旧的代码库,也没有控制台日志。因此,这看起来像特定于Xcode的配置。

I tried an old codebase and no console log either. So this looks like Xcode configuration specific. Something messed up randomly and automatically.

推荐答案

我发现部署到设备并开始可能需要一分钟。如果在部署后立即手动打开该应用程序,则它是另一个实例,并且在Xcode中没有调试可用。您必须等待Xcode本身运行应用程序以显示控制台信息。

I found out the deployment to device AND start may take up to a minute. If you open the app manually right after it deployed, it is a different instance and no debug available in Xcode. You have to wait for Xcode to run the app itself to show console info.

这篇关于Cordova应用突然在Xcode中没有控制台日志的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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