Eclipse 子进程(通过“运行”菜单启动)在哪里显示?

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

Where do Eclipse sub-processes (launched with the "run" menu) show up?

eclipseeclipse-3.4

提问by silviot

I'm using Eclipse 3.4.1, moving my first steps. When I run my project (a server process) a console opens. But for some reasons after a while I can't find it anymore (even if the process is still up). I'd like to find it to be able to see its output and/or kill it. Is there a place in Eclipse where I can find all running sub-processes?

我正在使用 Eclipse 3.4.1,这是我的第一步。当我运行我的项目(服务器进程)时,会打开一个控制台。但是由于某些原因,一段时间后我再也找不到它了(即使过程仍在进行中)。我想找到它能够看到它的输出和/或杀死它。Eclipse 中是否有可以找到所有正在运行的子进程的地方?

回答by silviot

There is a small button that looks like a monitor in the console panel. It lists all open consoles. I'm ashamed I didn't find it myself before posting the question, but maybe it will be useful to someone.

控制台面板中有一个看起来像监视器的小按钮。它列出了所有打开的控制台。我很惭愧在发布问题之前我自己没有找到它,但也许它对某人有用。

回答by VonC

If you are talking about "eclipse console", there is only one "console view", but several console instances.

如果您在谈论“eclipse 控制台”,那么只有一个“控制台视图”,但有多个控制台实例。

You can browse the different consoles by clicking on the second button from the left in the console view (the one looking like a monitor)

您可以通过单击控制台视图左侧的第二个按钮(看起来像监视器的按钮)来浏览不同的控制台

Your console may 'disappear' because another message is displayed in the main console (stdout) process, while your server still runs with the other console instance.

您的控制台可能会“消失”,因为主控制台 (stdout) 进程中显示了另一条消息,而您的服务器仍与其他控制台实例一起运行。

回答by Dan Bliss

An easier way if you are dealing with lots of processes is to use the Debug view (note: NOT the debug perspective, just the debug 'view' or 'window').

如果您正在处理大量进程,一个更简单的方法是使用调试视图(注意:不是调试透视图,只是调试“视图”或“窗口”)。

It shows a list of running processes, including processes started with Run instead of Debug. Selecting a process in the Debug view will open the corresponding Console, and visa-versa.

它显示正在运行的进程列表,包括使用 Run 而不是 Debug 启动的进程。在调试视图中选择一个进程将打开相应的控制台,反之亦然。

I put the Debug view above the Console view and size it to show just a few lines.

我将 Debug 视图放在 Console 视图上方,并将其大小调整为仅显示几行。