Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

mvnDebug for the junit5-maven-consumer sample doesn't hit breakpoint

See original GitHub issue

One runs mvnDebug test and as expected it waits for you to attache a debugger to port 8000.

You go ahead and do that - with a breakpoint set on line 26 of and it does not land on the breakpoint.

I wasn’t expecting full integration with Intellij to be working, but this issue isn’t about that, it’s about a more basic use: Maven fully in charge of the test site invocation, and Intellij being asked to watch classes being instantiated and pertinent lines to be hit. It is missing them. Is Junit5 doing something with classloaders that 4.x wasn’t previously?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:15 (9 by maintainers)

github_iconTop GitHub Comments

sbrannencommented, Jul 7, 2017

I wonder, if we should update the sample projects to include those runtime dependencies by default – until the IDE(A) integration is updated.

That’s probably a good idea.

@sormuras, I’m reopening this issue and assigning it to you – OK?

sormurascommented, Jul 20, 2017

Added additional (M6 launcher and engine) dependencies via

Closed again.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Remote debugging with mvnDebug, doesn't stop at breakpoint
While running the mvnDebug command, use -DforkMode=never . so your maven command will look like this: mvnDebug -DforkMode=never ...
Read more >
Breakpoints don't work when debugging maven project?
I am trying to debug a unit test in a Maven project. Normally I would just set up a JUnit test configuration in...
Read more >
JUnit 5 tutorial - Learn how to write unit tests -
It explains the creation of JUnit 5 tests with the Maven and Gradle build system. It demonstrates the usage of the Eclipse IDE...
Read more >
2020 quarkus-fascicle-understanding-v1.pdf
The examples used in this fascicle are designed to be compiled with Java 11, to be built with Maven 3.6.x and to be...
Read more >
Java | Learning Quest | Page 2 -
The earlier example that stores a list of customers would use the ... you can run Maven in debug mode using the mvnDebug...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found