Having trouble debugging Maven tests on IntelliJ? Try this

Do you feel like IntelliJ disrespects your breakpoints on your unit tests when you’re running in debug mode? I felt like that too. Here’s what I added to my pom:

It seems like Eclipse hides this from me, but the forked thing is pretty standard Maven behavior. According to Maven, the tests run in separate processes by default, which probably means that the IntelliJ debug process doesn’t see it by default.

Leave a Reply

Your email address will not be published. Required fields are marked *