如何增加 Eclipse 输出控制台的容量?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2828255/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-10 19:23:51  来源:igfitidea点击:

How do I increase the capacity of the Eclipse output console?

eclipseconsole

提问by Uri

Even with the "scroll lock" option enabled for the Eclipse console, eventually it overfills and starts auto-scrolling on me.

即使为 Eclipse 控制台启用了“滚动锁定”选项,最终它也会溢出并开始在我身上自动滚动。

Is there some way of increasing the capacity of the console so that it stores more lines? I wasn't able to find the option.

有没有办法增加控制台的容量,以便它存储更多的线路?我无法找到该选项。

回答by detly

Under Window > Preferences, go to the Run/Debug > Consolesection, then you should see an option "Limit console output." You can uncheck this or change the number in the "Console buffer size (characters)" text box below.

在 下Window > Preferences,转到该Run/Debug > Console部分,然后您应该会看到一个选项“限制控制台输出”。您可以取消选中此项或更改下方“控制台缓冲区大小(字符)”文本框中的数字。

(This is in Galileo, Helios CDT, Kepler, Juno, Luna, Mars, Neon, Oxygen and 2018-09)

(这是在 Galileo、Helios CDT、Kepler、Juno、Luna、Mars、Neon、Oxygen 和 2018-09 中)

回答by Dolph

Open the Windows > Preferences menu.

打开 Windows > 首选项菜单。

Expand the Run/Debug > Console preferences.

展开运行/调试 > 控制台首选项。

Set the Console buffer size (characters)to something much bigger. 2147383647/ ~2GB is the upper limit (or 1000000/ ~1MB in older releases). Or just uncheck the Limit console output.

将 设置为Console buffer size (characters)更大的东西。2147383647/ ~2GB 是上限(或1000000/ ~1MB 在旧版本中)。或者只是取消选中Limit console output.

回答by Zrin

For CDTusers / C/C++ build, also adjust the setting

对于CDT用户 / C/C++ build,还要调整设置

in Window > Preferences

在“窗口”>“首选项”中

under C/C++ > Build > Console (!)

在 C/C++ > Build > Console (!)

(This time in number of lines.)

(这次是行数。)

This also affects the "CDT Global Build Console".

这也会影响“CDT 全局构建控制台”。

回答by slaman

On the MAC OS X 10.9.5 and Eclipse Luna Service Release 1 (4.4.1), its not found under the Window menu, but instead under: Eclipse > Preferences > Run/Debug > Console.

在 MAC OS X 10.9.5 和 Eclipse Luna Service Release 1 (4.4.1) 上,在 Window 菜单下找不到它,而是在:Eclipse > Preferences > Run/Debug > Console 下。

回答by ROMANIA_engineer

Alternative

选择

If your console is not empty, right clickon the Console area> Preferences...> change the value for the Console buffer size (characters)(recommended) or uncheck the Limit console output(not recommended):

如果您的控制台不为空,右键单击控制台区>首选项...>更改值控制台缓冲区大小(字)(推荐)或取消选择限制控制台输出(不推荐):

enter image description hereenter image description here

在此处输入图片说明在此处输入图片说明

回答by Poomcyber

Window > Preferences, go to the Run/Debug > Console section >> "Limit console output.>>Console buffer size(characters):" (This option can be seen in Eclipse Indigo ,but it limits buffer size at 1,000,000 )

窗口 > 首选项,转到运行/调试 > 控制台部分>>“限制控制台输出。>>控制台缓冲区大小(字符):”(此选项可以在 Eclipse Indigo 中看到,但它将缓冲区大小限制为 1,000,000 )

回答by vinod kumawat

Under Window > Preferences, go to the Run/Debug > Console section, then you should see an option "Limit console output." You can unchecked this or change the number in the "Console buffer size (characters)" text box below. Do Unchecked.

在“窗口”>“首选项”下,转到“运行/调试”>“控制台”部分,然后您应该会看到“限制控制台输出”选项。您可以取消选中此项或更改下方“控制台缓冲区大小(字符)”文本框中的数字。做未经检查。

This is for the Eclipse like Galileo, Kepler, Juno, Luna, Mars and Helios.

这适用于像伽利略、开普勒、朱诺、月神、火星和太阳神这样的日食。

回答by Jean-Marie H

For C++ users, to increase the Build console output size see here

对于 C++ 用户,要增加 Build 控制台输出大小,请参见此处

ie Windows > Preference > C/C++ > Build > Console

即 Windows > Preference > C/C++ > Build > Console

回答by pietroSV

Eclipse has limit of 32000 characters per line. If you have, for example JSONObject, which you want to log into console, you won't succeed. You can't handle this with the checkbox. Tested

Eclipse 有每行 32000 个字符的限制。如果你有,例如 JSONObject,你想登录到控制台,你就不会成功。您无法使用复选框处理此问题。已测试