如何为特定的java进程打开控制台 [英] How to open console for a specific java process

查看:145
本文介绍了如何为特定的java进程打开控制台的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在eclipse中运行4个不同的进程,其中1个进程会将消息记录到控制台。如何在eclipse中打开并附加控制台到特定进程。即使我有4个不同的控制台,控制台的内容也在不断变化,正在记录最新的消息。我不想要的所有我想要的是四个专用控制台,以便我可以分别调试每个进程。

解决方案

你有4个独立的控制台,只是在同一个选项卡。更糟糕的是,正如您所提到的,只要一个控制台更改,Eclipse将自动翻转到该控制台。但是,这是您应该能够禁用的功能。控制台选项卡右侧应该显示显示控制台标准输出更改时。





您可以为每个控制台切换该按钮,以防止在您发生烦人的行为时有多个控制台产生大量的产出。 (旁边的按钮控制标准错误的相同行为。)



然后您可以手动在控制台之间切换


I am running 4 different process in eclipse and 1 of the process keep logging the message to the console. How can I open and attach the console to specific process in eclipse. Even if I have 4 different console the content of the consoles is keep changing to the processing which is logging the latest message. Which I do not want. All I want is four dedicated console so that I can debug every process separately.

解决方案

You do have 4 separate consoles, they are just all in the same tab. To make matters worse, as you mentioned, as soon as one console changes, Eclipse flips to that console automatically. However, that is a feature you should be able to disable. There should be a button to the right of the console tab that says "Show Console When Standard Output Changes".

You toggle that button on or off for each console to prevent the annoying behavior when you have multiple consoles producing a lot of output. (The button next to it controls the same behavior for standard error.)

You can then toggle between your consoles manually

这篇关于如何为特定的java进程打开控制台的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆