Is there a method to signal a breakpoint in Java like System.Diagnostics.Debugger.Break() in C#?
A:
Usually break points are a feature offered by the IDE being used itself. Maybe you could take a look at the Java Platform Debugger Architecture.
npinti
2010-05-15 17:13:20
A:
Not really. But I assume it can be implemented by accessing the debugging interface through an interface and set the breakpoint to the current class where the Break() function is implemented. Interesting question thought.
Daniel
2010-05-15 17:14:09
A:
How about throwing and catching a specific Exception for this purpose and creating an Exception breakpoint in your IDE ?
Carl Rosenberger
2010-05-22 15:04:01