[Webtest] using a debugger on webtest
Jeff Barrett
webtest@lists.canoo.com
Tue, 15 Feb 2005 10:27:33 -0800
This worked I've listed the steps I followed below. I don't know if all
these steps are necessary but after doing them I was able to have
breakpoints work in eclipse.
1) added the jars in ANT_HOME/lib into the webtest eclipse project
2) created a new "Java Application" entry by clicking on the drop down
next to the bug toolbar button and clicking on Debug then Java
Application->New
3) give the new application invoker some name and set the project to
whatever you called your webtest project
4) Main Class set to org.apache.tools.ant.Main
5) check Include external jars and Include inherited mains
6) Under the Arguments tab for program arguments add your testSpec build
file like -f C:\tests\myTest.xml
7) Under the Arguments tab add the ant.home argument in the VM arguments
like so: -Dant.home=3D"C:\Program Files\apache-ant-1.6.2"
8) uncheck Use default working directory and point it at the directory
you would normally invoke ant from on the command line
9) click Apply, set a breakpoint, run the application
-----Original Message-----
From: dierk.koenig@canoo.com [mailto:dierk.koenig@canoo.com]=20
Sent: Tuesday, February 15, 2005 2:43 AM
To: Jeff Barrett
Subject: Re: [Webtest] using a debugger on webtest
I'm not sure about eclipse as I use Idea in most cases.
But generally it's easy to debug.
Just call your webtest as a java program using
the ant "Main" class for starting. Provide the
same Classpath settings and Command Line
arguments like for a normal start.
cheers
Mittie
-------- Original Message(s) --------
---------------- Start of Message -----------------
From: jbarrett@finaplex.com
Sent: Tue Feb 15 03:31:43 CET 2005
To: webtest@gate2.canoo.com
CC:=20
Subject: [Webtest] using a debugger on webtest
Hello,
=20
I'd like to setup a debugger (preferably eclipse) to try and figure out
what the error is that I'm facing w/ webtest. I'm familiar with using
Eclipse's remote debugging to connect to an app server or startup a java
program in debug mode, but webtest is a bit different. I tried editing
the ant script to startup in debug mode, but that seems to hang. Plus I
don't even know if that would work since ant does all sorts of
forking/jvm wizardry at some points.
=20
So I was curious, has anyone set this up? Is it a pain or relatively
easy?
=20
Thanks.
=20
+jeff
javax.mail.internet.MimeMultipart@1cbf51f
---------------- End of Message -----------------