如何让 Eclipse 保持控制台输出?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/7796480/
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
How to get Eclipse to keep console output?
提问by Dave
I'm using Eclipse Indigo on Win XP with Java 6. I have a Maven project with GWT (2.3), and when I launch my project (Run -> Web Application), the app is throwing some startup errors. However, the console is only preserving the last part of the errors, and I can't tell what started it all off.
我在带有 Java 6 的 Win XP 上使用 Eclipse Indigo。我有一个带有 GWT (2.3) 的 Maven 项目,当我启动我的项目(运行 -> Web 应用程序)时,该应用程序抛出了一些启动错误。但是,控制台只保留了错误的最后一部分,我不知道是什么开始的。
http://screencast.com/t/MsgM1SuxI
http://screencast.com/t/MsgM1SuxI
Notice in the screen shot, I've scrolled up as much as possible but still the stack trace is cut off. How can I get Eclipse to save the entire console error log?
请注意,在屏幕截图中,我已尽可能向上滚动,但堆栈跟踪仍然被切断。如何让 Eclipse 保存整个控制台错误日志?
Thanks, - Dave
谢谢, - 戴夫
回答by Alastair Maw
You can adjust Eclipse's console buffer size in the preferences. See http://codeyarns.wordpress.com/2010/01/20/eclipse-console-buffer-size/:
您可以在首选项中调整 Eclipse 的控制台缓冲区大小。请参阅http://codeyarns.wordpress.com/2010/01/20/eclipse-console-buffer-size/: