Replies: 1 comment
-
cordova-plugin-console is obsolete and if installed it might be interferring with standard behaviour. So I'd recommend uninstalling it. The standard behaviour on android is console.log (and other console commands like warn, error, etc) will log to the devtools window. If the device has USB Debugging enabled, the device will be inspectable on "debug" mode apps and should be discoverable with Webview console logs are also printed in logcat, under the If logs aren't appearing, double check your filters. I'd also recommend testing in a sample application (such as the HelloCordova app) to help isolate the issue. e.g. if the issue persists only in your main project, then it could be another library interferring with logging. Perhaps there is something overriding the With the information provided, there isn't really much else I can suggest, so hopefully one of these ideas will help. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to see the output of errors or
console.log(...)
for a real device I'm testing on, without success.I've read Display Cordova "console.log" entries in Android Studio without any help.
I'm connecting my phone to laptop via USB:
Developer Options > USB debugging
enabledandroid:debuggable="true"
in the AndroidManifest.xml file.cordova plugin add cordova-plugin-console
.cordova build android --debug
andcordova run android --debug
Nothing is working. The log entries are not appearing in:
Android Studio > Logcat
Beta Was this translation helpful? Give feedback.
All reactions