Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to pause Eclipse on any exception?

I found the "Add Java Exception Breakpoint" menu item but it only seems to work on the exact exception type that I select. So if I ask it to break on Exception, it does not break in case of a NumberFormatException. How do I make it break for all exceptions?

My activity is exiting for no apparent reason with no LogCat output, so it would be nice to find out about any exceptions that are occurring, whether caught or uncaught and whether in my code or just in Android.

like image 331
Qwertie Avatar asked Jun 18 '12 22:06

Qwertie


1 Answers

  1. create an exception breakpoint for java.lang.Throwable (which is the most specific superclass of all exceptions - unlike Exception, it also matches instances of Error)
  2. right-click it, choose properties, and check "subclasses of this exception"
like image 152
meriton Avatar answered Oct 19 '22 15:10

meriton