Android Studio logcat 历史记录/缓冲区大小
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/24685302/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Android Studio logcat history/buffer size
提问by triad
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.
有谁知道是否有办法增加 Android Studio 中 logcat 历史记录/缓冲区的大小?我记得在 Eclipse 中有一种方法可以做到这一点,并且希望 Android Studio 有类似的设置。
回答by Nick
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.
您也可以通过 IDE 为每个项目执行此操作:设置->编辑器->常规->控制台:勾选“覆盖控制台循环缓冲区大小。在文本框中输入所需的大小。
Finally restart Android Studio for the changes to take effect.
最后重启 Android Studio 以使更改生效。
回答by codezjx
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!
您可以增加idea.cycle.buffer.size=1024
属性文件中的值android-studio\bin\idea.properties
,缓冲区大小单位:(Kb)。我已经尝试过了,它对我来说非常完美!
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
回答by Damian Je?ewski
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
恐怕目前无法更改 logcat 缓冲区大小。但是,我已经在 AOSP 问题跟踪器中创建了功能请求。这是链接:https: //code.google.com/p/android/issues/detail?id=73425
回答by netgui
Note that idea.cycle.buffer.size is documented in http://tools.android.com/tech-docs/configurationwith the following :
请注意,idea.cycle.buffer.size 记录在http://tools.android.com/tech-docs/configuration 中,内容如下:
#----------------------------------------------------------------
# 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
回答by Maher Abuthraa
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.
或者,主要是当您有大量数据并且想要临时查看它时,请使用过滤器(包 Logcat 优先级)并将输出输出存储到文件中。