problem debugging tests with Surefire, it doesn't fork tests

nadiyar <[email protected]>
Newsgroups gmane.comp.jakarta.turbine.maven.user
Message-ID <hpukwtU9Vf-ARswu7psqIvEJFWfZz0bSXkvO0pQrLe9CWIeGqr0GLAw8zUOK8o39tRuc3Qpu6bU0_hf_RlIfVJTx8RpBWturIN_pczd8qkM=@protonmail.com>
Hello everyone

I'm trying to debug my project tests made by JUnit5 using Surefire plugin and jdb.

so this is in my pom:

---------------------------------
<plugins>
...
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.5.3</version>
</plugin>
... </plugins>
---------------------------------

How to reproduce
executing surefire:
mvn -Dmaven.surefire.debug test

then attacch jdb to surefire on port 5005, but it doesn't behave as expected

---------------------------------

jdb -attach 5005
Set uncaught java.lang.Throwable
Set deferred uncaught java.lang.Throwable
Initializing jdb ...

VM Started: > No frames on the current call stack

main[1] stop at Write:33
Deferring breakpoint Write:33.
It will be set after the class is loaded.
main[1] step
>
Step completed: "thread=main", org.apache.maven.surefire.booter.ForkedBooter.main(), line=494 bci=0

main[1] where [1] org.apache.maven.surefire.booter.ForkedBooter.main (ForkedBooter.java:494)

---------------------------------

I expect jvm to stop on the line 33 but apparently it's never hit.any idea what's wrong?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.