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.

Bug 156482 - The Debug Test as currently provided does not work in all cases
Summary: The Debug Test as currently provided does not work in all cases
Status: RESOLVED DUPLICATE of bug 154477
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 6.x
Hardware: Other Solaris
: P3 blocker (vote)
Assignee: Milos Kleint
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-08 16:55 UTC by zolyfarkas
Modified: 2009-01-09 08:21 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description zolyfarkas 2009-01-08 16:55:06 UTC
The Debug Test as currently provided does not work in all cases:

jpda.listen=true
jpda.stopclass=${packageClassName}
argLine="-Xdebug -Djava.compiler=none -Xnoagent -Xrunjdwp:transport=dt_socket,server=n,address=${jpda.address}"
forkMode=once
test=${className}

I have changed to:

jpda.listen=true
maven.surefire.debug="-Xdebug -Djava.compiler=none -Xnoagent -
Xrunjdwp:transport=dt_socket,server=n,address=${jpda.address}"
jpda.stopclass=${packageClassName}
forkMode=once
test=${className}


this setting is compatible with all test fork modes I think...
Comment 1 Milos Kleint 2009-01-09 08:21:41 UTC
it doesn't work in the case when argLine is set in the project's pom.
if test is not forked, one has to debug the maven build as a whole, not just surefire, I'd the property would not work,
but haven't tried.

the problem with maven.surefire.debug is that was just recently introduced and people who have an older version of
surefire, will not get the debugged process started.

duplicate of #154477, which sets maven.surefire.debug, but attempts to dynamically to change it to argLine for older
versions of surefire

*** This issue has been marked as a duplicate of 154477 ***