问题
Does anyone know if there a way to increase the size of the logcat history/buffer in Android Studio? I remember there was a way to do it in Eclipse and was hoping Android Studio had a similar setting.
回答1:
You can also do it per project, via the IDE: Settings->Editor->General->Console: tick "Override console cycle buffer size. Enter your desired size in the text box.
Finally restart Android Studio for the changes to take effect.
回答2:
You can increase the value of idea.cycle.buffer.size=1024
in property file android-studio\bin\idea.properties
, buffer size unit: (Kb). I have already try, and it works for me perfect!
Configuration description as following :
#---------------------------------------------------------------------
# This option controls console cyclic buffer: keeps the console output size not higher than the specified buffer size (Kb).
# Older lines are deleted. In order to disable cycle buffer use idea.cycle.buffer.size=disabled
#---------------------------------------------------------------------
idea.cycle.buffer.size=1024
回答3:
I'm afraid currently it is not possible to change logcat buffer size. However, I've created feature request in AOSP issue tracker. Here's the link: https://code.google.com/p/android/issues/detail?id=73425
回答4:
Note that idea.cycle.buffer.size is documented in http://tools.android.com/tech-docs/configuration with the following :
#----------------------------------------------------------------
# This option controls console cyclic buffer: keeps the console output size not higher than the specified buffer size (Kb).
# Older lines are deleted. In order to disable cycle buffer use idea.cycle.buffer.size=disabled
#----------------------------------------------------------------
idea.cycle.buffer.size=1024
回答5:
Alternatively mainly when you have big size of data and you wanna temporarily review it, use filter (package Logcat priority) and store output output to a file.
来源:https://stackoverflow.com/questions/24685302/android-studio-logcat-history-buffer-size