Search code examples
javaandroiddebuggingandroid-studiologcat

How to generate printed messages in Android Studio debugging?


I am currently attempting to debug an Android App in Android Studio. However, because of the thousands of unhelpful messages on the logcat system, I am finding it impossible to work with this.

Does anyone know how I can simply insert an equivalent of System.out.println statements into my code so that I can view only these whilst I am debugging my code, instead of all the other random system messages that logcat generates?

Thanks in advance for any help.


Solution

  • If you want to see only your custom messages then it is matter of filtering out remaining messages which can be done using tags. This is already described here: How to filter Android logcat by application?