125

I have a web application running in Eclipse with Tomcat. It has a few errors that make the console popup every few seconds. How do I stop it from automatically popping up and taking focus?

Nathan
  • 8,093
  • 8
  • 50
  • 76
124697
  • 22,097
  • 68
  • 188
  • 315

4 Answers4

180

There are two buttons on the console toolbar at the bottom that allow you to take focus (or not)...one for stdout, one for stderr. I have an image with the buttons circled.

alt text

Matt Ball
  • 354,903
  • 100
  • 647
  • 710
Jeff Storey
  • 56,312
  • 72
  • 233
  • 406
  • 17
    All the time looking at the console and never seeing those icons! – Simon Forsberg Jan 08 '13 at 22:31
  • 3
    I don't see those icons in Eclipse Helios – Usman Ismail Jul 25 '13 at 17:46
  • 33
    For newer versions of Eclipse, go to Preferences > Run/Debug > Console and uncheck "Show when program writes to standard out" and "Show when program writes to standard error". – frankadelic Aug 29 '13 at 17:06
  • 1
    Works for most cases, but whenever I run JUnit tests, the console view in Mars steals focus from the JUnit view as soon as a breakpoint is hit and again when the test finishes (even if there is absolutely no output to the console). Only solution (well, workaround) I've been able to find is to keep the two tabs in different tab stacks. – Amos M. Carpenter May 20 '16 at 00:34
  • This also does not work for python scripts launched with EASE. – HRSE Feb 11 '19 at 01:52
28

There are two icons - "Show Console When X changes" in the console view. Unselect those.

Bozho
  • 588,226
  • 146
  • 1,060
  • 1,140
  • 2
    I don't seem to have these icons.... See http://i.stack.imgur.com/61Jgx.png . How do you make them appear? – Pacerier Nov 18 '14 at 05:17
0

This can also be done in Preferences

Windows > Preferences > Run/Debug > Console

uncheck "Show when program writes to standard out" and/or "Show when program writes to standard error".

jumps4fun
  • 3,994
  • 10
  • 50
  • 96
0

In poped up window.

  1. https://i.stack.imgur.com/dbaR3.png

2.New console view.

3.close the popped up window.

Ganesh
  • 11
  • 3