Maven debug break point

Answered

I have a maven project using cucumber and java.When on putting break point on runner class and debugging through debug mode of maven, break point is not hit.

6 comments
Comment actions Permalink

Use Application or Cucumber run/debug configuration, debugging Maven targets is not what you need.

0
Comment actions Permalink

Using Application or Cucumber run/debug doesn't help.

Reason : I have project for cucumber tests.For running it on CI , maven is used to call runner class which invokes cucumber tests.

Want to debug runner class using maven call.

0
Comment actions Permalink

When you debug the maven task, debugger connects to the Maven JVM, not to the JVM instance that runs your tests. You can use Remote debug configuration and configure Maven to run your tests with the debug options from the Remote configuration. Start Maven tests configuration first, then start Remote configuration to connect to the JVM that runs your tests and debug it.

0
Comment actions Permalink

Even remote debugging doesn't help.

Idea connects to port successfully but break point is not hit.

0
Comment actions Permalink

Make sure you are connecting to the correct JVM, sources in the IDE must be in sync with the classes loaded by the JVM. Breakpoint will get a check mark after remote debugger connection if the code is found where you've set the breakpoint.

0
Comment actions Permalink

Rahul Kumar after all those years, any solution my fen? :D

0

Please sign in to leave a comment.