Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse - cancel automatic switch to debug view


I have accidentally set in the past the eclipse to switch to debug view when break point is hit.
How do i cancel that, meaning make it manually

thanks

like image 998
fatnjazzy Avatar asked Apr 07 '11 10:04

fatnjazzy


People also ask

How do I disable debug mode in Java?

In the navigation view, choose Process Table. Select the relevant server process and, from the context menu, choose Stop Debug Session. In the Stop Debug Session dialog box, choose the debug entry for which you want to disable the debug mode.

How do I terminate debugging?

To end a debugging session in Microsoft Visual Studio, from the Debug menu, choose Stop Debugging.

How do I change debugging in Eclipse?

A Java program can be debugged simply by right clicking on the Java editor class file from Package explorer. Select Debug As → Java Application or use the shortcut Alt + Shift + D, J instead.


2 Answers

Uncheck:

Window > Preferences > Run/Debug > Activate the debug view when a breakpoint is hit

Also go to

Window -> Preferences -> Run/Debug -> Perspectives

And select either "never" or "prompt" in "Open associated perspective..."

like image 166
Bozho Avatar answered Oct 13 '22 19:10

Bozho


In your question you speak of a debug 'view', but I think you are actually referring to the debug 'perspective'. If not, just disregard my answer.

To stop Eclipse from switching to the Debug perspective when a breakpoint is hit:

Window -> Preferences -> Run/Debug -> Perspectives -> 'Open the associated perspective when an application suspends' -> Never

The Debug View is the window that shows the running application, it's threads and each thread's call stack in a tree view and gives you little 'play', 'pause', 'stop' etc buttons for things like Resume, Suspend, Terminate. I think the option referred to by the accepted answer tells Eclipse whether it should make this view the active view (within whatever perspective is set to open in debug mode) when a breakpoint is hit. Probably you do want that to be enabled...

like image 36
Stijn de Witt Avatar answered Oct 13 '22 19:10

Stijn de Witt