在 Eclipse 中,我可以同时拥有多个控制台视图,每个视图都显示不同的控制台吗?

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

In Eclipse, can I have multiple Console views at once, each showing a different Console?

eclipseconsoleide

提问by Thomas Owens

I'm working on some applications that, in debug mode, log to the console. I'd like to run and debug them from inside of Eclipse, and view the console for each one simultaneously. However, I have a single Console tab that shows a single Console output at a time. Is there a way I can split the consoles into multiple views so that I can have side-by-side console output?

我正在开发一些在调试模式下登录到控制台的应用程序。我想从 Eclipse 内部运行和调试它们,并同时查看每个控制台的控制台。但是,我有一个控制台选项卡,一次显示一个控制台输出。有没有办法可以将控制台拆分为多个视图,以便我可以并排控制台输出?

回答by Chase Henslee

Yes,

是的,

  • located near your console tab should be a button "Open Console".
  • If you click this button one of your options should be "New Console View".
  • 位于您的控制台选项卡附近应该是一个按钮“打开控制台”
  • 如果您单击此按钮,您的选项之一应该是"New Console View"

Eclipse Screenshot

Eclipse 截图

You'll now have 2 console views.

您现在将拥有 2 个控制台视图。

  • One of your other buttons near your console tab is "Display Selected Console". When you choose this option you can select from any of your running applications.
  • Just select the tab, select which application you want it to watch, and repeat for the other tab.
  • 靠近控制台选项卡的其他按钮之一是"Display Selected Console"。当您选择此选项时,您可以从任何正在运行的应用程序中进行选择。
  • 只需选择选项卡,选择您希望它观看的应用程序,然后对另一个选项卡重复此操作。

You can then move your 2 console views to wherever you want independently of each other.

然后,您可以将 2 个控制台视图彼此独立地移动到您想要的任何位置。

I'm using Eclipse Helios Release with build ID: 20100617-1415.

我正在使用 Eclipse Helios Release,构建 ID:20100617-1415。

回答by myusuf3

The best thing you can do is the following.

您可以做的最好的事情是以下内容。

Window > New Window. 

That will create another eclipse window like you currently have. Run the desired application, switch the console on the new window to display the desired console output with open console button on the console view.

这将创建另一个 eclipse 窗口,就像您目前拥有的一样。运行所需的应用程序,在新窗口上切换控制台以在控制台视图上使用打开控制台按钮显示所需的控制台输出。

A bit clunky but the only way to get multiple consoles at the same time. If your new windows doesn't have console open use

有点笨重,但这是同时获得多个控制台的唯一方法。如果您的新窗口没有控制台打开使用

Window > Show View > Console

Goodluck

祝你好运

回答by YAO ALEX DIDIER AKOUA

The post of Chase Henslee it's correct after click on 1, you must deactivate the second behavior with second step and at finish you can change the console with 3 step.

Chase Henslee 的帖子点击 1 后是正确的,您必须使用第二步停用第二个行为,完成后您可以使用 3 步更改控制台。