In IntelliJ, how do i debug a maven test goal?

前端 未结 6 936
旧时难觅i
旧时难觅i 2020-12-22 17:13

Using intellij and maven pom files, how do i debug tests run inside the maven test goal?

When i run them directly in the code, it complains something about profiles

6条回答
  •  执念已碎
    2020-12-22 17:31

    The question has been answered. But just to share my own experience. The selected answer did not solve my problem. My code has multiple modules.

    foolshat's reply did bring valuable insight to my problem.

    I have two solutions, 1. Using your IDEA, by adding a VM option -DforkMode=never; Must run it with debug mode. 2. Set up a remote debugging, specifying the socket and in this case forkMode is not necessary.

    It is just a summary for what I have been through.

提交回复
热议问题