Enable remote debugging command line option (+ docs)
----------------------------------------------------

         Key: MNG-2105
         URL: http://jira.codehaus.org/browse/MNG-2105
     Project: Maven 2
        Type: New Feature

  Components: Command Line  
    Versions: 2.0.2    
    Reporter: Geoffrey De Smet
    Priority: Minor


[dev list mailing reference: Debugging maven with breakpoints feed-back: --jdwp 
+ docs]

Problem:
Currently its hard to enable remote debugging for a remote debugger of your IDE.
Basically you need to set MAVEN_OPTS something like:
export MAVEN_OPTS="-Xdebug -Xnoagent -Djava.compiler=NONE  
-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000"
mvn ...
and unset it again.

Solution:

1) Make it easier, choices:
 A) Provide a command line option to do this (--debug is already taken for 
debug logging), choices:
    a) mvn --jdpa
    b) mvn --jdwp
 B) Provide a different script: mvnDebug
      to avoid parsing command line arguments in bat and shell
 C) Find a generic way to give options on the command, like -mx etc to the java 
process, possibly by namespacing them? 

2) Document it in mvn --help

3) Document it on 
http://maven.apache.org/guides/development/guide-m2-development.html
like so (APT):

Debugging with breakpoints

    You can attach a remote debugger of your IDE to the maven process.
    This will allow you to set breakpoints (line, exception, ...).

    Start maven in debugger mode on port 8000:

+--
mvn ??? install
+--

    If you want to change any of the debugger settings,
    use MAVEN_OPTS instead.

    Then connect to the correct port with a remote debugger in your IDE.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to