Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PhoneGap/Cordova: where is the console output?

Tags:

cordova

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?

like image 758
Timst Avatar asked Mar 11 '15 14:03

Timst


1 Answers

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.

like image 173
ceejayoz Avatar answered Oct 13 '22 13:10

ceejayoz