Java 你如何阻止控制台在 Eclipse 中自动弹出

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

How do you stop Console from popping up automatically in Eclipse

javaeclipse

提问by code511788465541441

I have a web application running in Eclipse with Tomcat. It has a few errors that make the console popup every few seconds. How do I stop it from automatically popping up and taking focus?

我有一个使用 Tomcat 在 Eclipse 中运行的 Web 应用程序。它有一些错误,使控制台每隔几秒钟弹出一次。如何阻止它自动弹出并获得焦点?

采纳答案by Jeff Storey

There are two buttons on the console toolbar at the bottom that allow you to take focus (or not)...one for stdout, one for stderr. I have an image with the buttons circled.

底部控制台工具栏上有两个按钮,可让您聚焦(或不聚焦)……一个用于标准输出,一个用于标准错误。我有一个带有圆圈按钮的图像。

alt text

替代文字

回答by Bozho

There are two icons - "Show Console When X changes" in the console view. Unselect those.

控制台视图中有两个图标 - “X 更改时显示控制台”。取消选择那些。

回答by jumps4fun

This can also be done in Preferences

这也可以在首选项中完成

Windows > Preferences > Run/Debug > Console

Windows > 首选项 > 运行/调试 > 控制台

uncheck "Show when program writes to standard out" and/or "Show when program writes to standard error".

取消选中“程序写入标准输出时显示”和/或“程序写入标准错误时显示”。