I'm trying to get the console output on my browser when trying out PhoneGap app through their Developer App. However, when trying to read the ouput on Firefox, this appears:
The Web Console logging API (console.log, console.info, console.warn, console.error) has been disabled by a script on this page.
Looking around, it seems that Cordova ovverides the default console behavior, presumably to be used with its console plugin (however, it also doesn't work without it).
My question is: where exactly can I find this output, if not in the browser window? I've seen some answers around that mention the Xcode console view, but I'm not using iOS. What now?
There are a variety of options detailed here. Your most likely option is Chrome's remote debugger:
Chrome Remote Debugging
If you are doing Android PhoneGap debugging and have an Android 4.4 device and Chrome 30+, you can use the new WebView Debugging tools added in Android 4.4. If you are using Cordova 3.3 or higher, this is already supported, and only requires the Debuggable flag in your AndroidManifest.xml. For Cordova 3.2, you will need to enable WebView debugging using some code, or by use of a plugin.
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