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.

Bug 153972 - debugger does not automatically stop on RuntimeException
Summary: debugger does not automatically stop on RuntimeException
Status: CLOSED DUPLICATE of bug 144098
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@debugger
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-26 21:17 UTC by David Konecny
Modified: 2010-04-29 09:45 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Konecny 2008-11-26 21:17:45 UTC
This might be a naive expectation but IDE is there to help me develop my code so here it is:

I have a junit test testing my code and it throws an exception - java.util.EmptyStackException. So I thought I will just
run it in debugger and debugger will automatically stop at the place which throws the exception and I do Pop Stack
couple of times if needed and evaluate the cause in my code.

But debugger did not stop.

I'm pretty sure will turn this into enhancement issue. But if you look at it from the point of view of modern IDE then
unexpected runtime exception will require users attention but IDE did not provide slightest help. Instead it forces user
to manually set exception breakpoint and run the test again and once the problem is resolved to remove the breakpoint.
Could that be all automated? I guess the problem might be how to detect whether runtime exception is handled by code or
not. Because certainly you want to stop only when unhandled runtime exception is thrown.
Comment 1 Martin Entlicher 2008-11-26 21:23:55 UTC
Thanks David, this is actually already being considered for NB 7.0.
See http://wiki.netbeans.org/DebuggerExceptionBP70 It's actually not precisely specified yet, but we'll likely submit a
default exception breakpoint for RuntimeExceptions that are not caught.

*** This issue has been marked as a duplicate of 144098 ***
Comment 2 Quality Engineering 2010-04-29 09:45:39 UTC
Verified ... and Closing all issues resolved into NetBeans 6.7 and earlier.