Reputation: 20015
My code is trowing ArrayIndexOutOfBoundsException
in a JUnit 4.12 test, I want to stop at that exception when it is thrown, but I can't for some reason.
Here are my debugger settings:
When I run my code with Debug, the exception is just logged to the console, and the debugger won't stop at the line where it has occurred.
What am I doing wrong?
Upvotes: 1
Views: 736
Reputation: 20015
Looks like the only way to stop at exception in a JUnit test is to create an exception breakpoint rule for that exception, because JUnit catches any excepiton that occurred in a test. Here is what I did:
Upvotes: 1