This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
When debuging a test case in a maven project which has the surefire-configuration argLine specified, debuging doesn't seem to work. (see related case in http://jira.codehaus.org/browse/MEVENIDE-435). This suggest that the maven plugin passes debugging information through the argLine parameter to the surefire plugin. However the 2.4.3 release of the plugin has a 'debugForkedProcess', ${maven.surefire.debug} property that seems better suited for that goal. Example configuration: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.4.3</version> <configuration> <includes> <include>**/*Test.java</include> </includes> <argLine>-Xmx512M</argLine> </configuration> </plugin> This setup won't let the debugger connect. Removing the argLine configuration solves the problem.
done for netbeans.next (after 6.5) http://hg.netbeans.org/maven-dev/rev/2f6ef9d18287
Integrated into 'main-golden', will be available in build *200810170201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/2f6ef9d18287 User: Milos Kleint <mkleint@netbeans.org> Log: #146287, MEVENIDE-435 - the default property carrying the debug switches is the maven.surefire.debug property, instead of argLine. for surefire versions < 2.4, use argline, for versions >=2.4, convert any custom argLine mappings to the new property
done
In Netbeans 8.0.2, this issue is still present.
(In reply to jcrada from comment #4) > In Netbeans 8.0.2, this issue is still present. Update: In Netbeans 8.0.2, this issue is still present as long as <forkCount>0</forkCount>. For values greater than zero, the debugging works fine.
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue. Thanks for your cooperation, NetBeans IDE 8.2 Release Boss
This problem has come back in with regards to the newish maven @{argLine} variable in the argLine element in the pom. Currently experiencing problem in 8.2 Not only does debugging of single test class fail, but also running a single test file Example: <argLine>@{argLine} -Dfile.encoding=UTF-8 -Xmx1g -Xms1g -XX:+PrintGCDetails</argLine>