Debug suspend does not work
---------------------------
Key: MGWT-138
URL: http://jira.codehaus.org/browse/MGWT-138
Project: Maven 2.x GWT Plugin
Issue Type: Bug
Affects Versions: 1.1
Environment: windows xp, Java 1.6, eclipse, GWT 1.7.1
Reporter: Gergely Kiss
Priority: Critical
The debugSuspend option in the plugin does not work as expected - it always
suspends the VM. Looking at the source, the problem is here:
org.codehaus.mojo.gwt.shell.DebugMojo.java:
...
74 extras += " -Xdebug -Xnoagent -Djava.compiler=NONE
-Xrunjdwp:transport=dt_socket,server=y,address=";
75 extras += debugPort;
76 if ( debugSuspend )
77 {
78 extras += ",suspend=y ";
79 }
80 return extras;
According to the JPDA docs
(http://java.sun.com/j2se/1.5.0/docs/guide/jpda/conninv.html), the default
value for suspend is 'y', so no matter the setting, the current code always
suspends the VM. It should be:
76 extras += ",suspend=" + (debugSuspend ? "y " : "n ");
(Sorry, I don't know where to submit a patch, and didn't have the time to
figure out)
--
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 from this list, please visit:
http://xircles.codehaus.org/manage_email