I use Log.d method also please import import android.util.Log;
Log.d("TAG", "Message");
But please keep in mind that, when you want to see the debug messages then don't use Run As
rather use "Debug As" then select Android Application. Otherwise you'll not see the debug messages.