Eclipse 子进程(通过“运行”菜单启动)显示在哪里?
我正在使用 Eclipse 3.4.1,迈出了我的第一步。 当我运行我的项目(服务器进程)时,会打开一个控制台。 但由于某些原因,一段时间后我再也找不到它了(即使进程仍在进行)。 我希望找到它能够看到它的输出和/或杀死它。 Eclipse 中是否有地方可以找到所有正在运行的子进程?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
控制台面板中有一个看起来像监视器的小按钮。 它列出了所有打开的控制台。
我很遗憾在发布问题之前我自己没有找到它,但也许它对某人有用。
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.
如果您正在谈论“eclipse console”,则只有一个“控制台视图”,但有多个控制台实例。
您可以通过单击控制台视图中左侧的第二个按钮(看起来像监视器的那个按钮)来浏览不同的控制台。
您的控制台可能会“消失”,因为主控制台(stdout)进程中显示另一条消息,而您的服务器仍然与其他控制台实例一起运行。
If you are talking about "eclipse console", there is only one "console view", but several console instances.
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.
如果您正在处理大量进程,一种更简单的方法是使用“调试”视图(注意:不是调试视角,只是调试“视图”或“窗口”)。
它显示正在运行的进程的列表,包括以“运行”而不是“调试”启动的进程。 在“调试”视图中选择一个进程将打开相应的控制台,反之亦然。
我将“调试”视图放在“控制台”视图上方,并将其大小调整为仅显示几行。
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.
I put the Debug view above the Console view and size it to show just a few lines.