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.
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.
What I want to achieve is this:
On Windows platform:
Right click on a window (some context menu will show up)
Capture the screenshot into a bitmap.
Create a window containing the screenshot on top of everything in the screen, including the context window.
Is step 3 possible?
ADD 1
I am going through the Window Styles from the 2 links below:
Extended Windows Styles
Windows Styles
Not sure if they can help me.
I discovered a solution in C# that may be applicable. If you bring the window to the front after the context menu has been created, it will bring it in front of the context menu. You can emulate a window that is always on top of everything on the screen by repeatedly bringing it to the front in a background thread.
Here is the C# implementation:
How to draw on top of the right-click menu in .NET/C#?
This link may also help. I don't know if the same process could be used to display on top of the right-click menu, especially not in Java, but it may be worth a look:
How can I make my own application on top in the start menu?
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
I've looked over Eclipse many many times, and cannot find this button! I had to use this and deal with this problem for 2 weeks now; it's getting really really annoying having to re-open the file cause i wanted to find the declaration line.
Please please please help.
Here's a picture:
(large version)
Customize perspective:
Click Window ยป Customize Perspective...
Expand Editor representation
Click Show source of selected element only
Moritz Petersen's answer will be helpful if you completely disabled the capability and want to get it back, but the option itself, if available, is under:
Window -> Preferences
And then:
Java -> Editor -> [ ] Only show the selected Java element
Personal tip: I bind this option to a keyboard shortcut so I can enable and disable it on demand. Very practical to focus on a task but indeed a bit annoying when you want to go back to a full-class view.
Maybe there is a bug in Eclipse.
I got the "Show Selected Element Only"- button, when I deselected all Editor Presentation buttons in the "Tool Bar Visibility" tab from the "Customize Perspective..."-menue. --> OK
After that I selected the button again.
usually, the compiler is in the lower right corner and pops up when you click on it
or when you have made an error. now i cant even find it. how do you call it up again?
Try this by clicking
"Window" -> Show View -> Problems
For your description it looks like you're looking for the console not the compiler
If so, look in:
Window --> Show View --> Console
You probably switched perspectives. Find the Java perspective in the menu or upper right corner, and switch to it.
If you accidentally closed the Problems or Markers view, you can re-open them through the menu.
You can also click Window > Reset Perspective. This is helpful when views get closed or lost in workspace.