I run individual test classes (or test methods) straight from
Eclipse, with no Ant involved. Works like a charm, and allows to
debug (or even profile) the code.
Andrus
On Aug 17, 2006, at 5:28 PM, Mike Kienenberger wrote:
> Hey Andrus,
>
> Is there an easy way to debug the unit tests?
>
> I've debugged some of the others (cdeploy and cgen) by using an
> antdebug.bat file to start up ant, but this doesn't appear to be
> working for unit tests.
>
> E:\WORKSP~2\CAYENN~1>"E:\W2k\jdk1.5.0_06\bin\java.exe" -Xdebug -
> Xnoagent -Djava
> .compiler=NONE -
> Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8123 -cl
> asspath "E:\java\apache-ant-1.6.3\lib\ant-launcher.jar" "-
> Dant.home=E:\java\apac
> he-ant-1.6.3" org.apache.tools.ant.launch.Launcher -
> Dbuild.compiler javac1.5 te
> st -Dtest.filter "**/access/trans/SelectTranslatorOuterJoinTst.class"
> Listening for transport dt_socket at address: 8123
>
>
> It stops and waits for me to attach, but never hits a breakpoint.
> I'm wondering if the problem is due to using emmajava instead of java.
>
> Actually, I guess in this case, I can run the test directly as there's
> no setup required external to the java code..... but in
> general.......?
>
>
> -Mike
>
This archive was generated by hypermail 2.0.0 : Thu Aug 17 2006 - 17:31:37 EDT