GitHub user breautek added a comment to the discussion: Not seeing error 
messages or console.log output in AS > Logcat or chrome://inspect

cordova-plugin-console is 
[obsolete](https://github.com/apache/cordova-plugin-console?tab=readme-ov-file#deprecated)
 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 `chrome://inspect` using desktop chrome.

Webview console logs are also printed in logcat, under the `chromium` tag:

![image](https://github.com/user-attachments/assets/d266cf4f-c5d0-4c46-b5e6-0ea0a4df1a6f)

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 `console` object?

With the information provided, there isn't really much else I can suggest, so 
hopefully one of these ideas will help.

GitHub link: 
https://github.com/apache/cordova/discussions/538#discussioncomment-12892533

----
This is an automatically sent email for issues@cordova.apache.org.
To unsubscribe, please send an email to: issues-unsubscr...@cordova.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to