Is there any java code, which can make a java program pause in eclipse debugger, just like breakpoint? Then I can check the information of debugger, like values, stack. Someone may misunderstand my question. I often write code for debugging like this
if(some_condition){
print_log();
abort();
}
In Visual Studio, I write abort() function. When I run a program in debug mode, abort() function can make the program pause and I can check the debugger.Is there some function in java like abort() in C++?