Reputation: 16194
If i have an alert in my app
alert("howdy");
What do i have to do to view that alert using the adb logcat command? I've tried adb logcat *:v
but nothing shows up - even though I can see the alert in the running app!
Upvotes: 0
Views: 79
Reputation: 24815
alert()
shows a dialog in Android, doesn't do any console/adb.
However, if you want things to show up you should use logging tools
If you dive into documentation you need to use the debug
, info
and error
methods to insert different levels of logging.
console.log()
, console.warn()
and console.error()
work too.
Upvotes: 1