如何在xcode控制台上查看phonegap javascript日志消息 [英] how to see phonegap javascript log messages on xcode console

查看:137
本文介绍了如何在xcode控制台上查看phonegap javascript日志消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图用Xcode上的phonegap开发一个基本的hello world应用程序。但我看不到Xcode控制台上的日志消息。我试过 console.log debug.log 但他们没有为我工作?

I am trying to develop a basic hello world application with phonegap on Xcode. But i can not see the log messages on Xcode console. I have tried console.log and debug.log but they did not worked for me?

如何在xcode控制台上查看javascript日志消息?

How can i see javascript log messages on xcode console?

推荐答案

在Phonegap 3.0中,您必须为console.log添加一个插件以在xcode控制台中工作。

In Phonegap 3.0 you have to add a plugin for console.log to work in the xcode console.

$ phonegap local plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-console.git

更多信息: http://docs.phonegap.com /en/edge/guide_cli_index.md.html#The%20Command-line%20Interface

这篇关于如何在xcode控制台上查看phonegap javascript日志消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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