Breaking on your own exceptions in IntelliJ

As mentioned by the other posters, Class Filters are the way to do this.

Specifically, you could add the package names for what you consider "your code" as a class filter. The syntax is a little opaque, but using a simple wildcard filter like:

com.whatever.package.*

sounds like it it will work for you. IntelliJ will break on any exception in any class in any package under here. You can of course define multiple wildcard filters if your code is in more than one place.


I was just messing with this earlier. Two ways to go:

1) Configure it to explicitly catch your exception, not "any exception" - if it's something like RuntimeException, this may not be filter-y enough. 2) Use the class results filter - this for whatever reason did NOT work for me. Ever.