Eclipse: stop code execution (java)

Sometimes I run a program that accidentally contains an infinite loop or something like that. Eclipse will allow me to continue editing the program, but it will be very slow. How can I stop him? (Do I want to restart the JVM?) Restarting eclipse itself always works, but it interrupts my workflow.

+45
java eclipse jvm
Oct 04 '09 at 0:10
source share
5 answers

Open the console view, find the console for your application, and click the Big Red Button.

Alternatively, if you open the debugging perspective, you will see all running applications (by default) in the upper left corner. You can choose the one that causes you grief, and once again hit the Big red button. enter image description here

+71
04 Oct '09 at 0:12
source share

For newer versions of Eclipse:

  • open the debugging perspective (window> Open Perspective> Debug)

  • select the process in the Devices list (bottom right)

  • Hit-Stop button (top right of the Devices panel)

+13
Feb 26 '13 at 19:22
source share

I have a .bat file on my quick taskbar (windows) using

taskkill /F /IM java.exe 

It is very fast, but in many situations it may not be so!

+2
Mar 22 2018-12-12T00:
source share

The easiest way to do this is to click the Finish button (red square) in the console:

enter image description here

+2
Jul 03 '15 at 20:02
source share

For Eclipse: menu bar-> window → show view, then find the option "debug", if not in the list, then select another ...

a new window will open, and then search for the keyword "debug" → select debug from the list

it will appear next to the console tab. use the debug tab to complete and delete previous executions. (right-clicking on the execution process will show you many options, including completion)

0
May 11 '16 at 11:18
source share



All Articles