How do I simulate user input in debug mode? - java

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.

Related

Java Swing recolor check box to appear disabled, without disabling it

I am using programing in java with netbeans. Basically i am trying to allow the user to see that the check box is not being used. But allow them to click it if they want to use it again.
If i disable the check box then the user can not re-enable it by clicking so instead i want to merely show that it is disabled, by changing the font color and check box icon.
Thank you very much!

Eclipse IDE - progress view show automatically when some progress

Is there any setting somewhere in Eclipse IDE, to automatically popup/show progress view, when some operation in progress ?
Go to Window > Preferences > General. In the General tab, uncheck the checkbox that says 'Always run in background'.
Once you do this, most operations will create a popup window showing progress of the operation, and you can also choose to push it to background if you wish to continue some other task. There is also a checkbox in the popup window which says 'Always run in background'. Never check that if you like seeing the popup window. If you do happen to check it by mistake, follow the above steps to restore the setting to your preference.

Disable showing of run window in IntelliJ

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

How to reopen debugger tabs in Java

I am in Eclipse and want to debug a program. I'm coding in Java if that helps. By default, when you enter debugger view, there are like 3 tabs, one of them is debug. They were closed somehow. How do I reopen these tabs?
right click on the button that says "Debug" that you press to switch to the debug perspective, then select "reset" to set your perspective as default.
If you don't see the "debug" icon, then go to windows menu and then "open perspective", and then "others" in case it doesn't appear there
On Menu bar, follow Window->Show View to see default views. To show a specific view, you may have to browse other views on Window->Show View->Others.
Window - Show view is the place where you'll find all the possible views.

How to open multiple consoles in multiple tabs in Eclipse?

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.

Categories