I wanted to print the value of a variable on the console for my debugging purpose, but System.out.println
doesn't work.
To print a String to console output, you can use System. out. print() or System.
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.
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.
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.
System.out.println
and Log.d
both go to LogCat, not the Console.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With