Eclipse - 如何给Java控制台无限长(在#lines) [英] Eclipse - how to give the Java Console unlimited length (in # lines)
问题描述
可能重复:
调整eclipse控制台大小
我已经设置为本地运行,它正在将所有的 System.out.println()
语句写入Eclipse中的Java控制台。
I am trying to debug an app that I have set up to run locally and it is writing all of its System.out.println()
statements to the Java Console in Eclipse.
问题是,它吐出了几十万行,并且当应用程序完成处理和关闭时,我只能看到最后〜25%的sysout语句。
The problem is, it's spitting out 10s of thousands of lines, and by the time the app finishes processing and shuts down, I can only see the last ~25% of sysout statements.
我注定了吗?或者在Eclipse中有一个设置,它允许我取消限制控制台在内存中保持的行数或保持可见。
Am I doomed? Or is there a setting in Eclipse that lets me un-restrict the number of lines the Console keeps in memory or keeps viewable.
如果这是不可能的,有没有办法将输出重定向到文件或可以持有40,000行以上输出的文件?
And, if this isn't possible, is there a way to redirect output to a file or something that can hold 40,000+ lines of output?
提前感谢!
推荐答案
转到窗口>首选项>运行/调试>控制台有一个复选框限制控制台输出和一个文本框输入缓冲区大小
Go to Window > Preferences > Run/Debug > Console there's a checkbox "Limit console output" and a textfield for entering the buffer size of the console.
只需尝试一下。它适用于我,但我的代码输出不超过1000行。
Just try this out. It works for me but my code is outputting not more than 1000 lines .
这篇关于Eclipse - 如何给Java控制台无限长(在#lines)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!