Breakpoints not respected in Remote debugging of Maven / TestNG test

I am on 9.0.3

Does anyone have pointers on how to resolve the issue described in the subject line?

1 comment
Comment actions Permalink

The surefire plugin runs the tests in a new JVM - if you turn off forking, your test breakpoints should work.  Add this to your POM's plugins section:

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
        <inherited>true</inherited>
        <configuration>
          <forkMode>never</forkMode>
        </configuration>
      </plugin>

0

Please sign in to leave a comment.