Eclipse - 如何给Java控制台无限长(在#行) [英] Eclipse - how to give the Java Console unlimited length (in # lines)

查看:164
本文介绍了Eclipse - 如何给Java控制台无限长(在#行)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


可能重复:

调整eclipse控制台大小


我正在尝试调试一个应用程序我已经设置在本地运行,它正在将所有的 System.out.println()语句写入Eclipse中的Java控制台。



问题是,它正在吐出10万条线,当应用程序完成处理并关闭时,我只能看到最后〜25%的sysout语句。

$我注定了吗?或者Eclipse中有一个设置,可以让我限制控制台保存在内存中或保持可见的行数。



而且,如果这是不可能的,有没有办法将输出重定向到一个文件或者可以可以持有40,000行输出的东西?



提前感谢! >

解决方案

转到窗口>首选项>运行/调试>控制台有一个复选框限制控制台输出和一个文本框输入缓冲区大小控制台。



只需尝试一下。它适用于我,但我的代码输出不超过1000行。


Possible Duplicate:
adjusting eclipse console size

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.

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.

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.

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?

Thanks in advance!

解决方案

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.

Just try this out. It works for me but my code is outputting not more than 1000 lines .

这篇关于Eclipse - 如何给Java控制台无限长(在#行)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆