Christian,

Add something like the following to maven.bat:

if "%MAVEN_DEBUG%" == "" goto nodebug
set JPDA_OPTS=transport=dt_socket,address=9009,server=y,suspend=y
echo JPDA enabled with options: %JPDA_OPTS%
set MAVEN_OPTS=%MAVEN_OPTS% -Xrunjdwp:%JPDA_OPTS% -Xdebug -Xnoagent
-Djava.compiler=NONE
:nodebug

I added it to mine after the line:

if "%MAVEN_OPTS%"=="" SET MAVEN_OPTS=-Xmx160M


Then you can turn JPDA on for a particular run of Maven by simply
setting the MAVEN_DEBUG env var.

Regards,
Ian

ps - This question probably would have been more appropriate for the
users list.

| -----Original Message-----
| From: Christian Mouttet [mailto:[EMAIL PROTECTED] 
| Sent: Thursday, August 26, 2004 12:20 PM
| To: [EMAIL PROTECTED]
| Subject: Debugging Maven
| 
| I'm downloading the source from CVS and want to run Maven in 
| an Eclipse 
| debugging session. How can I debug Maven itself?
| 
| -Christian
| 
| ---------------------------------------------------------------------
| To unsubscribe, e-mail: [EMAIL PROTECTED]
| For additional commands, e-mail: [EMAIL PROTECTED]
| 
| 

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

Reply via email to