This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
When a method is left due to an exception was thrown, method exit breakpoint is not hit. (This is as designed in JDI.) It's handy, though, to stop execution when the method is left by any means, including a thrown exception. To get this to work, one needs to create an Exception breakpoint. This can be done automatically for the user, as suggested in issue #57442. It's proposed to add into the Method breakpoint customizer something like: [X] Stop On Method Exit [ ] Add an Exception Breakpoint (Throwable) restricted to this method [Customize...]
One thing to keep in mind is that Exception breakpoints stop the debugee at the location where the exception is thrown. What I am looking for in the functionality stated in the Summary is that stopping on method exit as the stack may be unwinding due to an exception thrown in the method that is target of this breakpoint or some method that was called from it. I suspect that this needs to be handled/supported by the JVMTI itself :(