How to suspend Eclipse on any exception?

I found the menu item "Add Java Interrupt Exception Point", but it seems to work only with the specific type of exception that I select. Therefore, if I ask it to break on an Exception , it will not break in case of a NumberFormatException . How to make it break into all exceptions?

My activity comes out for no apparent reason without LogCat output, so it would be nice to know about any cases that occur, whether they are caught or not, and in my code or just in Android.

+7
source share
2 answers
  • create an exception checkpoint for java.lang.Throwable (which is the most specific superclass of all exceptions - unlike Exception , it also corresponds to Error instances)
  • right click on it, select properties and check "subclasses of this exception"
+6
source

You should be able to do this using the appropriate template. In particular, * will match any string (including an empty string), so *Exception* will match all strings that contain the Exception substring in them, including the Exception string and strings that have Exception at the very beginning or end.

-one
source

All Articles