You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by EN <er...@gmail.com> on 2007/10/02 19:07:39 UTC

Remote Debugging on Linux

Hi,

Using Maven 2.0.7 on Linux, JDK 1.5, I'm trying to remote debug my code. I
changed MAVEN_OPTS and running remote debug (both on IDEA and Eclipse).
Running mvn test, maven start listening on the port and when I start my
debug session, the build continue but it does not stop at my breakpoint.

Same works as expected on Windows.

Has anyone experienced such issue?

Thanks,
Erez.
-- 
View this message in context: http://www.nabble.com/Remote-Debugging-on-Linux-tf4556044s177.html#a13002917
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Remote Debugging on Linux

Posted by Rémy Sanlaville <re...@gmail.com>.
>
> But, why is it working on Windows and not on Linux?


I don't really know.
I am on Windows and I have to specify the configuration Surefire plugin in
order to debug my tests in remote mode.

Did you have the same pom.xml (same Surefire configuration and version) ?
Try to clean your local repository on Windows...


Rémy

Re: Remote Debugging on Linux

Posted by EN <er...@gmail.com>.
Thanks, I'll give it a try.
But, why is it working on Windows and not on Linux? 

Erez.
-- 
View this message in context: http://www.nabble.com/Remote-Debugging-on-Linux-tf4556044s177.html#a13014244
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Remote Debugging on Linux

Posted by Emmanuel Hugonnet <eh...@gmail.com>.
Netbeans with the maven plugin can do this for you automagically ;o)

2007/10/3, Rémy Sanlaville <re...@gmail.com>:
>
> Indeed, by default surefire start a new jvm for the tests.
> So you have to add your remote debug configuration in the surefire
> configuration plugin like that :
>
>     <plugin>
>       <groupId>org.apache.maven.plugins</groupId>
>       <artifactId>maven-surefire-plugin</artifactId>
>       <version>2.3</version>
>       <configuration>
>         <argLine>-Xdebug -Xnoagent -Djava.compiler=NONE
> -Xrunjdwp:transport=dt_socket,address=4000,server=y,suspend=y
> </argLine>
>       </configuration>
>     </plugin>
>
> HTH,
>
> Rémy
>

Re: Remote Debugging on Linux

Posted by Rémy Sanlaville <re...@gmail.com>.
Indeed, by default surefire start a new jvm for the tests.
So you have to add your remote debug configuration in the surefire
configuration plugin like that :

    <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-surefire-plugin</artifactId>
      <version>2.3</version>
      <configuration>
        <argLine>-Xdebug -Xnoagent -Djava.compiler=NONE
-Xrunjdwp:transport=dt_socket,address=4000,server=y,suspend=y
</argLine>
      </configuration>
    </plugin>

HTH,

Rémy

Re: Remote Debugging on Linux

Posted by Michael McCallum <gh...@apache.org>.
check that the tests are not forked in a separate vm... in which case you will 
need the debug options for the forked vm not the maven one...

On Wednesday 03 October 2007 06:07, EN wrote:
> Hi,
>
> Using Maven 2.0.7 on Linux, JDK 1.5, I'm trying to remote debug my code. I
> changed MAVEN_OPTS and running remote debug (both on IDEA and Eclipse).
> Running mvn test, maven start listening on the port and when I start my
> debug session, the build continue but it does not stop at my breakpoint.
>
> Same works as expected on Windows.
>
> Has anyone experienced such issue?
>
> Thanks,
> Erez.

-- 
Michael McCallum
Enterprise Engineer
mailto:gholam@apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org