tags:

views:

111

answers:

3

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
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
A: 

How about throwing and catching a specific Exception for this purpose and creating an Exception breakpoint in your IDE ?

Carl Rosenberger