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?
In the Xcode menu hit Run - Console. This is where NSLog / print / printf etc statements output. The key command is Command + Shift + R.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With