I am familiar with What is the short cut in eclipse to terminate debugging/running?. But nothing is working for me. I wish to be able to terminate a running program in the Java perspective in the same manner I able to do so on the Debug perspective with CTRL+F2.
If one could provide a specific details of how to achieve it, It will be really great!
UPDATE
To clear any doubts, Assume a toy example when all we have is as following:
public class ToyExample {
public static void main(String[] args) {
while (true);
}
}
I wish to execute (run) the program above normally (CTRL+F11), i.e. not under Debug mode, and have the ability to terminate it by CTRL+F2 (or another keyboard-shortcut).