如何在 Eclipse 的多个选项卡中打开多个控制台?

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

How to open multiple consoles in multiple tabs in Eclipse?

javaeclipseconsoleperspective

提问by Nitin Garg

I am using Eclipse Version: Helios Release for a Java application. I need to run multiple instances of same application and want easy visibility of multiple consoles.

我正在为 Java 应用程序使用 Eclipse 版本:Helios Release。我需要运行同一应用程序的多个实例,并希望轻松查看多个控制台。

Can it be done? If yes, how?

可以做到吗?如果是,如何?

采纳答案by nanda

Run the application twice (say instance A and B). Console will display message from B. Then create two consoles as rsilva pointed (say 1 and 2). Both consoles will show message from B. After that change console 1 to display message from A by selecting the arrow near icon with monitor and select the instance A. The message from instance A will be displayed on console 1.

运行应用程序两次(比如实例 A 和 B)。控制台将显示来自 B 的消息。然后按照 rsilva 的指示创建两个控制台(比如 1 和 2)。两个控制台都将显示来自 B 的消息。之后,通过选择带有监视器的箭头附近图标并选择实例 A,将控制台 1 更改为显示来自 A 的消息。来自实例 A 的消息将显示在控制台 1 上。

You can of course drag (or detached) one console to other place for better visibility.

您当然可以将一个控制台拖(或分离)到其他地方以获得更好的可见性。

回答by rsilva4

Just look for your console view and in the right top click on the 'Open Console' button and select 'New console view'

只需查找您的控制台视图,然后在右上角单击“打开控制台”按钮并选择“新控制台视图”

回答by Jason B-H

If you write out your console information to multiple logs, then you can use a utility called Baretailwhich is highly configurable and easy to use. It allows you to view a growing file, i.e. logs for example, in realtime. Its easy to use and highly configurable - might be of some help to you.

如果您将控制台信息写入多个日志,那么您可以使用名为Baretail的实用程序,该实用程序高度可配置且易于使用。它允许您实时查看不断增长的文件,例如日志。它易于使用且高度可配置 - 可能对您有所帮助。

回答by Jason B-H

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".

位于控制台选项卡附近的应该是“打开控制台”按钮。如果您单击此按钮,您的选项之一应该是“新控制台视图”。

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. You can then move your 2 console views to wherever you want independently of each other.

控制台选项卡附近的其他按钮之一是“显示选定的控制台”。当您选择此选项时,您可以从任何正在运行的应用程序中进行选择。只需选择选项卡,选择您希望它观看的应用程序,然后对另一个选项卡重复此操作。然后,您可以将 2 个控制台视图彼此独立地移动到您想要的任何位置。