How to disable eclipse switching to debug view while debugging - eclipse

First this is NOT a question about perspectives. I already have the debugging perspective disabled while I'm debugging. My question is about the Debug view (Window -> Show view -> Other -> Debug -> Debug). This view pops up giving you information about threads running and where they are suspended and the like. My problem is that often times I find myself in need of just watching console output while stepping through code for whatever reason. My Console window is anchored in the same region of the eclipse IDE as the Debug view. If I close the debug view down there, I lose the ability to step over / into while stopped on a break point (the hotkeys don't work either, but the application still suspends right where it was when you closed the view). If I have the debug view open, every time I step over / into a method, the screen switches focus from the console back to the debug view. This is exceedingly annoying. How can I disable this?
Edit - I just did some testing, and the Debug view receives focus over anything else that's anchored in the same region as it. Regardless of what the other tabs purpose may be. There might be some exceptions, but surely there is a way to disable this someplace...
I also noticed that it doesn't switch to debug view with every step, in my case it switches when something is written to SDT Out.
One last Edit - I found a work around, it doesn't answer the question I asked but does solve my particular situation. Under Window -> Preferences -> Run/Debug -> Console there are two check boxes for show when program writes to standard out / standard error. If I check those, eclipse will first switch to the Debug view, then immediately switch back to the console.

Eclipse's Preferences under Run/Debug? There are two useful options you can change;
Activate the workbench when a breakpoint is hit
Activate the debug view when a breakpoint is hit
hopefully it will solve your problem. goodlouck

You can't. Anchor the Console in a different part stack so you can see its output along with the Debug view and the editor pane.
The only reason the step actions know which thread to operate on is because it's selected in the Debug view and the Debug view has focus.

Related

Eclipse IDE no view at all - how to get it back

When I start Eclipse I get nothing. Not a single view. Similar to my previous question here except that now I have absolutely nothing at all. I don't have a menu to be able to even select window -> New Window or window -> reset perspective. The screen is completely other then the application running in my taskbar.

Stop Eclipse from automatically opening the debug perspective when starting server in debugging mode

There are several examples on stack overflow of how to enable/disable the debug perspective from opening when the debugger activates (i.e., hits a breakpoint). This would be achieved by going to:
Preferences -> Run/Debug -> Perspectives -> Open the associated perspective when application suspends
My question is not about this. Whenever I start my server in debug mode, the debug perspective opens. Since I already have the debug view open in my custom perspective, this is not the behavior I want. I've tried editing every option in Preferences -> Run/Debug -> Perspectives, so I know the answer is not there. Does anyone know how to stop this behavior?
I found a simple workaround that obtains the same result. I now use the "Debug" perspective itself as my main perspective. I've customized the "Debug" perspective to look like the custom perspective I used to use. Now this perspective is the only one that is ever open and I can keep the IDE looking like how I want it to look.

How to remove "Debug Current Instruction Pointer"

I tried to use the debugger in Eclipse, but when I hit my
breakpoints, the Eclipse "Debug Current Instruction Pointer" is often
pointing at the wrong source line.I really want to remove "Debug Current Instruction Pointer". "Project -> Clean..." doesn't seem to help, nor does
restarting Eclipse, nor does rebooting.
The "Debug Current Instruction Pointer" is the position where you paused debugging last time. You can simply resolve it by following the below two steps
Go to the "Debug" preference/panel
Then click on the red square button to terminate the debugging you were executing last time or press Ctrl+F2 (Windows)
Now, just debug the program again. The execution will be starting from the "Toggle Breakpoint".
Note: You can delete the Toggle Breakpoint by double click on the line number and redefine the new according to your requirements by right click on targeted line number and select "Toggle BreakPoint" or press Ctrl+Shift+B (Windows)
Go to the debug view (as your current debug session is running) and complete or terminate current debugging session. this way you will get rid of "Debug Current Instruction Pointer"
What helped me was remove all breakpoints - right-click, RemoveAll.
sometimes breakpoints remain in eclipse list even after we remove them by clicking over them, to remove
Show Breakpoints view by navigating menu
Window>>Show View>>Other>> Select Debug>>Breakpoints
In Breakpoints view, uncheck unnecessary breakpoints
To prevent this pointer from ever being displayed in the first place, go to
Preferences -> General -> Editors -> Text Editors -> Annotations ->
select Debug Current Instruction Pointer -> uncheck "Vertical ruler"
box
"Debug Current Insturction Pointer" isn't something you would want to remove since it is not something that is set in any way, ist just a pointer to the current instruction where the debugger has paused your application. You can see that easily if you just step through your application and see how the "Debug Current Insturction Pointer" is moving along.
If you think it is pointing at the wrong source-line there are two reasons I can think of right now:
There are some "old" breakpoints left from earlier debug-sessions. You should see the breakpoint-marker and be able to remove it. If you want to get rid of all existing breakpoints just go to the breakpoints-view and remove them all using the double-X-icon.
The source-file shown in the debug-window doesn't match the class file that is currently running. This is most likely to happen in some imported libraries and not in your own project's code, but if it still does happen a clean/rebuild should take care of the problem.
You need to get out of the current debug session. Go to the debug console and end the current session by hitting the red square button.
This should remove all the debug current instruction pointers.
Check the arguments written in Run Configuration, because they can be wrong.
To reach Run Configuration, right click the project's main class -> Run As -> Run Configurations -> Java Application on menu -> Arguments. In the text Area write your arguments and try to debug again.

Eclipse Debug View pops up on a breakpoint in full screen mode

I just got Eclipse Kepler a couple of days ago - pretty nice! Unfortunately the Debug view gets focused while encountering a break point in full screen mode. Afterwards I need to click somewhere to make it disappear.
I made a screen shot:
Can this be customized? I wasn't able to find anything in the preferences. I also had the same issue with the Console view but these two nice buttons made it work.
Thank you!
Yes, you can disable using a setting, from eclipse Window-> Preferences -> Run/Debug -> uncheck Activate the debug view when a breakpoint is hit.

Console disappear in Eclipse Juno

I am using Eclipse Juno. I was working in Java perspective and suddenly I minimized the console. I don't know where it went but I am unable to get it back. I even tried to get it from Windows>Show View>Console but I didn't get my console back.
It happened the same thing to me. Just click Window->Reset Perspective and everything will be back as it was when you installed eclipse.
Sure you'll have to customize it back to how you like it, but at least you'll have the console back.
If console is not visible, just search for "Console" in QuickAccess box on the right hand top of menu bar. you can get it back!
Stupid Eclipse. Are there no interface designers volunteering on this project? Why minimize something and make it hard to see where to bring it back? Probably all you have to do is hit Shift-Control-Tab-F9 with one hand while right-double-clicking the lower left hand corner. Hmm, how about a popup when you click a minimized Console that says "We see you've minimized your Console and you are clearly trying to switch to it. Would you like us to restore that so you can actually see it?" followed by "Are you really sure? Cuz ya know, you may be using this click path by accident."
The reset perspective works. Also, you can "Save Perspective" so it's not so hard to go back to your preferred Perspective.
Thanks for the tip.
Bring console to the front from Window -> Show View -> Console. Apparently the console remains invisible (that was the issue indeed), but it is virtually active in the foreground.
Close the current view (i.e. the invisible console) by going to the "Quick Access" box at the toolbar, typing "Close Part", and selecting the respective option on the drop-down.
Reopen console form Window -> Show View -> Console and voilĂ , it will appear. Drag it to your preferred location on the workbench.
This works for me under the following situation:
I had been previously playing with detaching several views (console included) and editors to a separate window on a different monitor; I have updated my workspace from Neon to Oxygen and I have had a hard reset at my computer. (So, not sure which among those was the reason that made it go wrong).
I wanted to avoid resetting my perspective, as it is highly customised, so I discarded that solution.
Other solutions herein proposed had not worked.
The console was working and the view became visible if I chose a different perspective (e.g. Debug) or a duplicate Eclipse window (which effectively provides a duplicate of a factory-reset perspective).
you could click the small icon on the bottom left and choose console. it will appear.