1. Load the following class into jdb or any Java IDE
2. stop at breakpoint at line 3
3. evaluate the expression "Main.blow()", this should throw an exception in the debugeee VM (the invocation in debugger will throw an InvocationException)
4. step over ... this will effectively resume debugee, no step event is generated
Test class:
public class Main {
public static void main(String[] args) {
System.out.println("set breakpoint here");
System.out.println("does not stop here");
System.out.println("does not stop here");
}
private static void blow() {
throw new NullPointerException();
}
}
This issue was reported against Netbeans 4.0beta, see http://www.netbeans.org/issues/show_bug.cgi?id=50315
Works OK in 1.4.x releases, does not work since 1.5.0.
###@###.### 10/20/04 10:27 GMT