Using LogCat in Android Studio or Eclipse to debug your code

You’ve spent hours developing your app and each time you test it, it either bombs or returns results that you never expected. You would love to see what’s causing the problem. Well you can. Android’s Log class enables you to do just that. You can use the Log class to display messages as the app runs and even filter the messages so that only messages that you are interested in are displayed.