IntelliJ IDEA debugger skips breakpoints when debugging Maven tests

后端 未结 4 723
予麋鹿
予麋鹿 2021-02-01 18:23

I am trying to debug Maven tests in IntelliJ IDEA. When I open IDEA\'s Maven Projects view and right-click on test goal, I get an option to debug it. C

4条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-01 18:52

    If you're running unit tests with maven failsafe rather than surefire, then debugger will not stop and you have to manually run a failsafe debugger command line and then intellij will be able to stop on the breakpoints. I am unsure if using never option on failsafe solves this issue.

    As I describe here: https://github.com/djangofan/maven-failsafe-debug-example

提交回复
热议问题