Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to see phonegap javascript log messages on xcode console

Tags:

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?

How can i see javascript log messages on xcode console?

like image 925
Isa Kuru Avatar asked Nov 13 '12 08:11

Isa Kuru


People also ask

How do I view logs in Xcode?

In the Xcode menu hit Run - Console. This is where NSLog / print / printf etc statements output. The key command is Command + Shift + R.

Where is the console log in Xcode?

Here is small tip for Xcode developers. To show/hide the Console click the icon Show/Hide the console in the lower right corner. It's the last icon on the lower right side of the panel.


1 Answers

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 

More info: http://docs.phonegap.com/en/edge/guide_cli_index.md.html#The%20Command-line%20Interface

like image 51
Nick Breen Avatar answered Oct 06 '22 03:10

Nick Breen