I have installed those plugins
JAVASCRIPT
document.addEventListener('deviceready', onDeviceReady, false)
var onDeviceReady = function () {
console.log("console.log works well")
}
How can I catch the log message in console?
And what made me feel strangely was phonegap tolded me the console file location
'~/Projects/Mine/Test/PhoneGapTry/platforms/ios/cordova/console.log'
,but I could not find it
There are basically two ways:
cordova run <your_platform> -l -c
, then the-c
flag redirectsconsole.log
messages to your console.