RE: [mevenide-user] Debug problems with NB 6.5 and maven 2
"Zoltan Farkas" <[email protected]> Wed, 7 Jan 2009 08:19:52 -0600
| Newsgroups | gmane.comp.jakarta.turbine.maven.mevenide.user |
|---|---|
| Message-ID | <A483EB3CA9C69D41AEC537D1C7C2CAFF03690D8D@34093-C3-EVS2.exchange.rackspace.com> |
------_=_NextPart_001_01C970D3.3E99752F Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I would like to file a issue regarding this, where should where should I file this? =20 --zoly ________________________________ From: Zoltan Farkas [mailto:[email protected]]=20 Sent: Thursday, December 18, 2008 4:51 PM To: [email protected] Subject: RE: [mevenide-user] Debug problems with NB 6.5 and maven 2 Ok, Figured it out myself, changed the Debug Test properties to: =20 jpda.listen=3Dtrue maven.surefire.debug=3D"-Xdebug -Djava.compiler=3Dnone -Xnoagent -Xrunjdwp:transport=3Ddt_socket,server=3Dn,address=3D${jpda.address}" jpda.stopclass=3D${packageClassName} forkMode=3Donce test=3D${className} =20 and it works now, I gues it was related with my fork settings on the surefire plugin (for for every test). =20 however with argLine debugging did not work... =20 --zoly ________________________________ From: Zoltan Farkas [mailto:[email protected]]=20 Sent: Thursday, December 18, 2008 2:14 PM To: [email protected] Subject: [mevenide-user] Debug problems with NB 6.5 and maven 2 I am new to m2/nb5 combination, and I have some problems getting debug working. =20 I am trying to debug a unit test and I am running it with: "debug test" =20 here is the output: =20 NetBeans: JPDA Listening Start... JPDA Address: z:52116 Port:52116 NetBeans: Executing '/opt/apache-maven-2.0.9/bin/mvn = -Djpda.listen=3Dtrue -Djpda.stopclass=3DMyClassName -Djpda.address=3D52116 = -DargLine=3D-Xdebug -Djava.compiler=3Dnone -Xnoagent -Xrunjdwp:transport=3Ddt_socket,server=3Dlocalhost,address=3D52116 -DforkMode=3Donce -Dtest=3DEventExpertProcessorTest test-compile surefire:test' NetBeans: JAVA_HOME =3D/usr/java ...... =20 The debugger console displays: Listening on 52116 =20 However I never see the debugger attaching to the process .... =20 Am I missing something? I had no problems doing this with M1/nb5.5 =20 thanks =20 --zoly ------_=_NextPart_001_01C970D3.3E99752F Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; = charset=3Dus-ascii"> <META content=3D"MSHTML 6.00.2900.2180" name=3DGENERATOR></HEAD> <BODY> <DIV dir=3Dltr align=3Dleft><SPAN class=3D640501314-07012009><FONT = face=3DArial=20 color=3D#0000ff size=3D2>I would like to file a issue regarding this, = where should=20 where should I file this?</FONT></SPAN></DIV> <DIV dir=3Dltr align=3Dleft><SPAN class=3D640501314-07012009><FONT = face=3DArial=20 color=3D#0000ff size=3D2></FONT></SPAN> </DIV> <DIV dir=3Dltr align=3Dleft><SPAN class=3D640501314-07012009><FONT = face=3DArial=20 color=3D#0000ff size=3D2>--zoly</FONT></SPAN></DIV><BR> <DIV class=3DOutlookMessageHeader lang=3Den-us dir=3Dltr align=3Dleft> <HR tabIndex=3D-1> <FONT face=3DTahoma size=3D2><B>From:</B> Zoltan Farkas=20 [mailto:[email protected]] <BR><B>Sent:</B> Thursday, December = 18, 2008=20 4:51 PM<BR><B>To:</B> [email protected]<BR><B>Subject:</B> RE:=20 [mevenide-user] Debug problems with NB 6.5 and maven = 2<BR></FONT><BR></DIV> <DIV></DIV> <DIV dir=3Dltr align=3Dleft><SPAN class=3D556044821-18122008><FONT = face=3DArial=20 color=3D#0000ff size=3D2>Ok, Figured it out myself, changed the Debug = Test=20 properties to:</FONT></SPAN></DIV> <DIV dir=3Dltr align=3Dleft><SPAN class=3D556044821-18122008><FONT = face=3DArial=20 color=3D#0000ff size=3D2></FONT></SPAN> </DIV> <DIV dir=3Dltr align=3Dleft><SPAN class=3D556044821-18122008><FONT = face=3DArial=20 color=3D#0000ff = size=3D2>jpda.listen=3Dtrue<BR>maven.surefire.debug=3D"-Xdebug=20 -Djava.compiler=3Dnone -Xnoagent=20 -Xrunjdwp:transport=3Ddt_socket,server=3Dn,address=3D${jpda.address}"<BR>= jpda.stopclass=3D${packageClassName}<BR>forkMode=3Donce<BR>test=3D${class= Name}</FONT></SPAN></DIV> <DIV dir=3Dltr align=3Dleft><SPAN class=3D556044821-18122008><FONT = face=3DArial=20 color=3D#0000ff size=3D2></FONT></SPAN> </DIV> <DIV dir=3Dltr align=3Dleft><SPAN class=3D556044821-18122008><FONT = face=3DArial=20 color=3D#0000ff size=3D2>and it works now, I gues it was related with my = fork=20 settings on the surefire plugin (for for every = test).</FONT></SPAN></DIV> <DIV dir=3Dltr align=3Dleft><SPAN class=3D556044821-18122008><FONT = face=3DArial=20 color=3D#0000ff size=3D2></FONT></SPAN> </DIV> <DIV dir=3Dltr align=3Dleft><SPAN class=3D556044821-18122008><FONT = face=3DArial=20 color=3D#0000ff size=3D2>however with argLine debugging did not=20 work...</FONT></SPAN></DIV> <DIV dir=3Dltr align=3Dleft><SPAN class=3D556044821-18122008><FONT = face=3DArial=20 color=3D#0000ff size=3D2></FONT></SPAN> </DIV> <DIV dir=3Dltr align=3Dleft><SPAN class=3D556044821-18122008><FONT = face=3DArial=20 color=3D#0000ff size=3D2>--zoly</FONT></SPAN></DIV><BR> <DIV class=3DOutlookMessageHeader lang=3Den-us dir=3Dltr align=3Dleft> <HR tabIndex=3D-1> <FONT face=3DTahoma size=3D2><B>From:</B> Zoltan Farkas=20 [mailto:[email protected]] <BR><B>Sent:</B> Thursday, December = 18, 2008=20 2:14 PM<BR><B>To:</B> [email protected]<BR><B>Subject:</B>=20 [mevenide-user] Debug problems with NB 6.5 and maven = 2<BR></FONT><BR></DIV> <DIV></DIV> <DIV><SPAN class=3D862420819-18122008><FONT face=3DArial size=3D2>I am = new to m2/nb5=20 combination, and I have some problems getting debug = working.</FONT></SPAN></DIV> <DIV><SPAN class=3D862420819-18122008><FONT face=3DArial=20 size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D862420819-18122008><FONT face=3DArial size=3D2>I am = trying to debug=20 a unit test and I am running it with: "debug test"</FONT></SPAN></DIV> <DIV><SPAN class=3D862420819-18122008><FONT face=3DArial=20 size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D862420819-18122008><FONT face=3DArial size=3D2>here = is the=20 output:</FONT></SPAN></DIV> <DIV><SPAN class=3D862420819-18122008><FONT face=3DArial=20 size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D862420819-18122008><FONT face=3DArial = size=3D2>NetBeans: JPDA=20 Listening Start...<BR>JPDA Address: z:52116<BR>Port:52116<BR>NetBeans: = Executing=20 '/opt/apache-maven-2.0.9/bin/mvn -Djpda.listen=3Dtrue = -Djpda.stopclass=3DMyClassName=20 -Djpda.address=3D52116 -DargLine=3D-Xdebug -Djava.compiler=3Dnone = -Xnoagent=20 -Xrunjdwp:transport=3Ddt_socket,server=3Dlocalhost,address=3D52116 = -DforkMode=3Donce=20 -Dtest=3DEventExpertProcessorTest test-compile=20 surefire:test'<BR>NetBeans: JAVA_HOME=20 =3D/usr/java</FONT></SPAN></DIV> <DIV><SPAN class=3D862420819-18122008><FONT face=3DArial=20 size=3D2>......</FONT></SPAN></DIV> <DIV><SPAN class=3D862420819-18122008><FONT face=3DArial=20 size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D862420819-18122008><FONT face=3DArial size=3D2>The = debugger console=20 displays: Listening on 52116</FONT></SPAN></DIV> <DIV><SPAN class=3D862420819-18122008><FONT face=3DArial=20 size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D862420819-18122008><FONT face=3DArial = size=3D2>However I never see=20 the debugger attaching to the process ....</FONT></SPAN></DIV> <DIV><SPAN class=3D862420819-18122008><FONT face=3DArial=20 size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D862420819-18122008><FONT face=3DArial size=3D2>Am I = missing=20 something? I had no problems doing this with = M1/nb5.5</FONT></SPAN></DIV> <DIV><SPAN class=3D862420819-18122008><FONT face=3DArial=20 size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D862420819-18122008><FONT face=3DArial=20 size=3D2>thanks</FONT></SPAN></DIV> <DIV><SPAN class=3D862420819-18122008><FONT face=3DArial=20 size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D862420819-18122008><FONT face=3DArial=20 size=3D2>--zoly</FONT></SPAN></DIV></BODY></HTML> ------_=_NextPart_001_01C970D3.3E99752F--