Phonegap / Cordova: where is the console output?

I am trying to get console output in my browser when trying PhoneGap application through developer application. However, when you try to read the output in Firefox, it looks like this:

The web console management API (console.log, console.info, console.warn, console.error) is disabled using the script on this page.

Looking back, it seems that Cordova supports the default behavior of the console, which is supposed to be used with the plugin (however, t without it).

My question is: where exactly can I find this output, if not in the browser window? I saw several answers that mention the Xcode console view, but I do not use iOS. Now what?

+6
source share
1 answer

Here are the various options here . The most likely option is the Chrome remote debugger:

Chrome remote debugging

If you are debugging Android PhoneGap 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 use Cordova 3.3 or higher, this is already supported, and only the Debuggable flag is required for AndroidManifest.xml. For Cordova 3.2, you need to enable WebView debugging using some code or using a plugin.

+8
source

Source: https://habr.com/ru/post/983658/


All Articles