Netbeans, Swing, and runtime exceptions
This seems like a trivial problem, but I haven't been able to find this out either by searching this forum or through a google search, so I'm going to ask...
How do I break on exceptions that happen in the Swing EDT? If I have an actionlistener that gets called, say on a button press, and I do something silly in the handler that's going to generate a runtime exception, how do I break on that, by default, in the NetBeans debugger?
When I try it, all that happens is a stack trace is printed out in the output window. Swing seems to be catching and killing any runtime exceptions I generate and I don't get a chance to see them in the debugger.
How do I set up NetBeans/swing/the VM/whatever to actually break on the site of the exception? Without enabling first-chance exception breakpoints, of course?