I am using Eclipse Version: Helios Release for a Java application. I need to run multiple instances of same application and want easy visibility of multiple consoles.
Can it be done? If yes, how?
Run the application twice (say instance A and B). Console will display message from B. Then create two consoles as rsilva pointed (say 1 and 2). Both consoles will show message from B. After that change console 1 to display message from A by selecting the arrow near icon with monitor and select the instance A. The message from instance A will be displayed on console 1.
You can of course drag (or detached) one console to other place for better visibility.
Just look for your console view and in the right top click on the 'Open Console' button and select 'New console view'
If you write out your console information to multiple logs, then you can use a utility called Baretail which is highly configurable and easy to use. It allows you to view a growing file, i.e. logs for example, in realtime. Its easy to use and highly configurable - might be of some help to you.
Located near your console tab should be a button "Open Console".
If you click this button one of your options should be "New Console View".
You'll now have 2 console views.
One of your other buttons near your console tab is "Display Selected Console". When you choose this option you can select from any of your running applications.
Just select the tab, select which application you want it to watch, and repeat for the other tab.
You can then move your 2 console views to wherever you want independently of each other.
Related
When switching to a line with user input, the variable that should store it is not initialized in the "variables" tab, which is probably logical, but I don't understand why.How do I simulate user input in debug mode?
screenshot
Make sure Console tab is enabled for the debugger tool window layout. If you can't see it, try restoring the default layout:
You can also Drag & Drop the console tab to the bottom of the tool window so that it's visible at the same time:
Focus the Console tab and type what you need.
I have two projects in the same workspace that need to run at the same time. I just switched to using Spring Tool Suite 4. I used to do this by having two instances of Eclipse open. I want to run one using Boot (the embedded server) and the other on Tomcat 9. I did try it and both appeared to be running but the console output seems to track only one of the apps. Am I setting up the apps the wrong way? Thanks for any helpful tips.
Follow this -
located near your console tab should be a button "Open Console".
If you click this button one of your options should be "New Console
View".
Eclipse Screenshot
You'll now have 2 console views.
One of your other buttons near your console tab is "Display Selected Console". When you choose this option you can select from any of your running applications.
Just select the tab, select which application you want it to watch, and repeat for the other tab.
You can then move your 2 console views to wherever you want independently of each other.
In IntelliJ every time I make a change in code and I run the app afterwards, "run window" is automatically popped up. Is there any way to disable this annoying behaviour or how to make it less distracting?
I finally could solve this one. At least it worked for me. At the bottom of "Run/Debug configurations" window and in "Before launch" part, uncheck "Activate tool window" check box.
There is currently no solution to do this permanently. However, there is a workaround to prevent it from popping up. Try this:
After the first time the window pops-up simply resize it all the way to the bottom (i.e. grab the TOP and drag down until the window disappears). This will prevent it from popping up again until you manually click one of the buttons to open any window in the same area (i.e. Run, TODO, Android, Terminal, Messages, (and Find Results) - or whatever you have in that same area if you've customized it).
To keep it from popping up, never click the hide button on any of these windows but rather use the same "drag from top to bottom" to hide them (the effect is the same).
This is annoying, to say the least, but once you get used to it it works fine and is much less annoying than dealing with that blasted Run popup window :)
NOTE
I should mention that this is completely safe to do as the windows are only hidden when you do this, and clicking the window's button at the bottom will show it in its original size - so nothing goes missing or breaks using this method :-)
These are called Tool Windows. Right-click the tool window, it pops up a menu, the last option of which is 'Hide'.
Alternatively,
You can install the plugin ToolWindow Manager to show/hide the Tool Window of your choice.
Either
1. Set the run window to be in either split and then shrink it down to be as small as possible.
2. Set the windows to be in floating mode and then shrink it down and move it somewhere less distracting.
disabling checkboxes in "Window | Background tasks solved my problem.
It is soooo annoying oO I just dragged the windows to an other screen and/or set their height to a minimum.. Not "best practise" but it is better than nothing -.-
In intellij go to main menu windows->active tool window->disable floating mode option there.
thanks
For those who are facing this issue with "Run" window they can follow below instruction
From dropdown select "Edit Configuration":
Open Logs tab:
Uncheck these 2 checkboxes:
I have found a solution!!!!
There old plugin for Intellij IDE called "Hide Tool Window Ex".
It hides any tool windows that being opened just after you click in editor again.
(plugin page)
visual example
So I am learning Google App Engine with Java. When modifying files i realized I dont always see my changes. I try clicking the red button to stop the web application in eclipse and then restarting the application however I dont see the changes. This even happens if i run chrome in incognito mode. I also have the same problem with IE and Firefox (By default i use firefox when developing due to my preference of firebug).
Also at times I will get annoyed with one project and start a new google app engine project. However the GAE will still be running the first one not the second one even though i close the project. Even worse was when i deleted the root project folder I still saw the index.html page though the links were broken for the project i deleted.
I am thinking there are two issues one is that my browser is storing these files in a cache. And the other is that I am not actually restarting the google app engine. Is the right procedure just to click the red square in the console in eclipse or is there something to run on the command line (in windows)?
To be brief , if i want to stop the GAE from in eclipse and restart it to see any changes i made whats the easiest way to do this on windows?
Thanks
edit:
Rumor has it that adding Google Web Toolkit to the project made my App Engine launch show up in the Development Mode pane, where it could be easily be killed or restarted. Is handling this issue this way a wise idea?
Trying out this touch command idea, i was hoping there was a command line way to restart the server similar to ruby on rails
the answer by dragon in this question would be helpful if it had more detail
The red button will stop it. You shouldn't need to run anything from the command line.
What you should do though is look at "Developement Mode" view and confirm nothing is running. It's under Window-->show view -->Other--> Google. Clicking on the gray arrows will show you what is open (running or not). Also, you can press the grey Xs to clear all stopped instances. This should confirm if something is running.
Also, look under run --> run configurations -->server. You have an option to set the port, or have it automatically set. If you are trying to run more than one project, your second one may not start if the first one has already taken the port. Keep that in mind.
As far as your browser storing Dev Mode page in cache, I don't think it can. In fact, if you close the running dev mode in instance your browser page should immediately update reflecting the fact that it has lost a connection. If it doesn't, surely you didn't manage to shut it down.
Ok, so I said the red button will stop it and it will, but you have to get the right red button. If you have more than one instance running, again look at the "Developement Mode" view, there is only one red button and you have to use the grey arrows I mention to get focus on the dev mode instance you want.
It's not really that complicated and you'll have it down by tommorrow!
Here is the Dev. Mode view. You can see I have three instances. The first is actually running, but shows red as there was an error. Clicking the grey grey Xs will get rid of the second two non-running instances and clicking the document icon with one grey x (it's not greyed out), will clear the log from the current running instance and remove the red x as there would then be no errors in the log.
Got it?
I have several working sets in my eclipse which i often switch from one to another, is there any shortcuts for this so i don't have to click the "view menu" button and click the working set in it every time when i want to switch?
Thanks.
You can set up in preferences/Window working sets.
See this reference for your answer.
Source