gvlasov
gvlasov

Reputation: 20015

Can't stop at exception in IntelliJ IDEA while writing Kotlin code

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:

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

Answers (1)

gvlasov
gvlasov

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:

New configuration

Upvotes: 1

Related Questions