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?

Reply via email to