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中有没有可以找到所有正在运行的子流程的地方?
3 个解决方案
#1
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.
在控制台面板中有一个看起来像显示器的小按钮。它列出了所有打开的控制台。我很惭愧我在发布问题之前没有找到它,但也许对某人有用。
#2
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)进程中会显示另一条消息,而您的服务器仍然使用其他控制台实例运行。
#3
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').
如果处理大量进程,更简单的方法是使用Debug视图(注意:不是调试透视图,只是调试'视图'或'窗口')。
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启动的进程。在Debug视图中选择一个进程将打开相应的Console,反之亦然。
I put the Debug view above the Console view and size it to show just a few lines.
我将Debug视图放在Console视图上方并调整其大小以显示几行。
#1
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.
在控制台面板中有一个看起来像显示器的小按钮。它列出了所有打开的控制台。我很惭愧我在发布问题之前没有找到它,但也许对某人有用。
#2
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)进程中会显示另一条消息,而您的服务器仍然使用其他控制台实例运行。
#3
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').
如果处理大量进程,更简单的方法是使用Debug视图(注意:不是调试透视图,只是调试'视图'或'窗口')。
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启动的进程。在Debug视图中选择一个进程将打开相应的Console,反之亦然。
I put the Debug view above the Console view and size it to show just a few lines.
我将Debug视图放在Console视图上方并调整其大小以显示几行。