How to debug on mobile devices?


When my app has a bug, I usually do inspect element then I look at the console and I can see what I console.log in the code.
How can I do the same for when I am testing on an actual device?

I read that I can do adb logcat | grep -i "console" and then see all my console.logs from the code. It sort of works but all I can see is [INFO:CONSOLE(13)] "[object Object]" regardless of what I log, it could be a string and it would still give me that. Not too useful.



hello claudiocarmeli. i also face the same problem. im debug my apps via android studio. i “string” everything into the log. so i can read the log easily…