If a Java app built in Eclipse hangs (due to getting into an infinite loop, for instance), the only way I can find to get it to terminate is to quit the IDE and restart it. Is there some sort of stop button I can use if I encounter this problem?
The problem with that is that neither Eclipse nor the Java app shows up in the Force Quit dialog.I've caused Java loops when running from Terminal, and picking Apple Menu->Force Quit works great.
Todd
Thanks! I did not even know the Debug perspective existed until you pointed that out to me.If you are running it from within Eclipse, switch to the Debug perspective and then take a look in the Debug view - it will contain a list of all the running threads. You can elect to stop them by selecting them and click the red square or right click and select Terminate.
Learn more: http://www-128.ibm.com/developerworks/opensource/library/os-ecbug/
Thanks! I did not even know the Debug perspective existed until you pointed that out to me.
Does the red Terminate button work?
It's been a while since I used Eclipse, though I'm sure it's always shown when you run a program.
Thank you, everyone. Problem solved.Yep, this button should do what you want. It's on the 'Console' tab toolbar.