896: how to use class exclusion filters on exception breakpoints

Could someone tell me please how to use exlusion filters on exception
breakpoints. Can you list the exceptions with wildcards? Or do you have to
list the files where the exeption is thrown? Or is this feature perhaps not
working in this build?

Willem


3 comments
Comment actions Permalink

You can use either full-qualified names or ""-terminated strings denoting a set of names. "", as usual, means "zero or more
characters".
The filters apply to the files where you expect the exception to be thrown. If you use "class filters", then the list of the
patterns is assumed to denote the files in which the exception will be hit (provided the monitored exception was thrown). "class
exclusion filters" denote the files in which the breakpoint will notbe hit even if it was thrown there. Note that full-qualified
name of an object's runtime class is matched against specified patterns.

--

Best regards,
Eugene Zhuravlev
JetBrains, Inc, http://www.intellij.com
"Develop with pleasure!"


0
Comment actions Permalink

Thanks for your information! So it isn't possible to just list the
exceptions (like ClassNotFoundException), which shouldn't cause a breakpoint
hit if you selected stop on 'Any exceptions'?

Willem


"Eugene Zhuravlev" <jeka@intellij.com> wrote in message
news:bhg7j5$5ir$1@is.intellij.net...

You can use either full-qualified names or "*"-terminated strings denoting

a set of names. "*", as usual, means "zero or more

characters".
The filters apply to the files where you expect the exception to be

thrown. If you use "class filters", then the list of the

patterns is assumed to denote the files in which the exception will be hit

(provided the monitored exception was thrown). "class

exclusion filters" denote the files in which the breakpoint will notbe

hit even if it was thrown there. Note that full-qualified

name of an object's runtime class is matched against specified

patterns.
>

--

>

Best regards,
Eugene Zhuravlev
JetBrains, Inc, http://www.intellij.com
"Develop with pleasure!"

>
>


0
Comment actions Permalink

"Any exception breakpoint" will match any Throwable as the name suggests :-).
In order to monitor particular exception you have to add a separate breakpoint on the exception's class. Class filters apply to the
source of the exception, not exception itself.

--

Best regards,
Eugene Zhuravlev
JetBrains, Inc, http://www.intellij.com
"Develop with pleasure!"


0

Please sign in to leave a comment.