Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android: How can I print a variable on eclipse console?

Tags:

android

logcat

I wanted to print the value of a variable on the console for my debugging purpose, but System.out.println doesn't work.

like image 946
SuperCop Avatar asked May 02 '10 04:05

SuperCop


People also ask

How do I print output in Eclipse?

To print a String to console output, you can use System. out. print() or System.

How do I print text in eclipse?

You select the text in your console, right-click and select copy. Now you can paste the text you've copied. Show activity on this post. Your function may be using System.

How do I get full console output in Eclipse?

It can be changed by going to Windows --> Preferences --> Run/Debug --> Console and then unchecking "Limit Console Output" which is ON by default. This works on STS any version too. This would help printing complete console output. For a Mac it is Eclipse > Preferences > Run/Debug > Console.

Where is the console in Android Studio?

in the upper menu of Android Studio. In the bottom status bar, click 5: Debug button, next to the 4: Run button. Now you should select the Logcat console. Check this article for more information.


1 Answers

System.out.println and Log.d both go to LogCat, not the Console.

like image 194
drawnonward Avatar answered Oct 16 '22 17:10

drawnonward