Cordova 2.9, 3.0 no console.log Cordova 2.9, 3.0 no console.log javascript javascript

Cordova 2.9, 3.0 no console.log


The console functionality is now implemented as a plugin, which you need to manually add to your project:

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


try to add Debug Console plugin to your project by running this command:

$ cordova plugin add org.apache.cordova.console


The problem is because of the command line utility. There are two ways to create a project with the PhoneGap/Cordova CLI - Use the bash scripts that come with PhoneGap folder you download, and (2) to install the Cordova CLI.

I used the Cordova CLI, which doesn't use any resources you download, it downloads the latest release of PG - in this case 3.0, which isn't available yet on phonegap.com. It's very possible it may not be a stable release, because the console.log didn't work in the iOS app it created.

I tried using the batch script in the 2.9 folder I downloaded, and it created an app with fully functional console.log(ging).