Force Java Awt to crash fully when hitting exception
debugging my java awt gui app here. Exceptions are thrown in my drawing methods. But awt keeps on going. Which can be annoying for debugging purpo开发者_如何学编程ses. Is there a way to tell awt that I want the application to crash entirely when hitting an exception?
You may be able to achieve that by setting ui thread exception handler that will exit application. Check Thread.UncaughtExceptionHandler. I never tried it myself though.
精彩评论