Thanks a lot for your loooooooog explanation, Stian!
I will try that soon.

Wei

Stian Soiland-Reyes wrote:
> Two choices:
>
> 1) Start Taverna with this option added to taverna.sh / taverna-debug.bat:
>
> ARGS="$ARGS -Xdebug
> -Xrunjdwp:transport=dt_socket,suspend=n,server=y,address=8000"
>
> Then attach remotely to this from Eclipse's Debug dialogue. Remember
> to set the source project to a project that contains the source you
> are interested in.
>
> To let Eclipse get the source code for Taverna-parts, right click on
> your project and select Maven -> Download sources - in that way you
> can debug your way through Taverna code as well - although if you need
> to change any of that code you would have to import those modules as
> separate projects from Subversion instead.
>
>
> 2) Run Taverna from eclipse. The workbench-dev project (see
> http://taverna.googlecode.com/svn/taverna/products/net.sf.taverna.t2.taverna-workbench/tags/taverna-workbench-2.1-beta-2/)
> is meant for this purpose. Note that this does not use Raven or
> Taverna's plugin system, so in order to enable your plugin you would
> need to add your project to the classpath in the Run dialogue in
> Eclipse (but make sure Taverna starts this way before you add your
> plugin). Also note that since there is only a single classloader you
> might experience classloader issues if your plugin conflicts with any
> libraries used by Taverna's activities.
>
> To set up your run target, when you click Run->Java application and
> select the main method from the class "PreLauncher", i.e.
> net.sf.taverna.raven.prelauncher.PreLauncher
>
> You would need to specify the location of the "dot" application once
> Taverna is up, you can do that from Preferences.
>
>
> On Mon, Oct 19, 2009 at 16:01, Wei Tan <[email protected]> wrote:
>   
>> Hi,
>>
>>   I wonder if anybody can share some best practice of debugging a
>> Taverna plug-in?
>> Currently I found it is hard to debug since each time I need to start
>> the workbench, see the error trace, go back to Eclipse to change the
>> code, and then back to start workbench...
>>
>>   Any suggestion is appreciated.
>>
>> Wei
>>
>>
>> ------------------------------------------------------------------------------
>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>> is the only developer event you need to attend this year. Jumpstart your
>> developing skills, take BlackBerry mobile applications to market and stay
>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>> http://p.sf.net/sfu/devconference
>> _______________________________________________
>> taverna-hackers mailing list
>> [email protected]
>> Web site: http://www.taverna.org.uk
>> Mailing lists: http://www.taverna.org.uk/taverna-mailing-lists/
>> Developers Guide: http://www.mygrid.org.uk/tools/developer-information
>>
>>     
>
>
>
>   

-- 
Wei Tan, Ph.D.
Computation Institute
the University of Chicago|Argonne National Laboratory
http://www.mcs.anl.gov/~wtan


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
taverna-hackers mailing list
[email protected]
Web site: http://www.taverna.org.uk
Mailing lists: http://www.taverna.org.uk/taverna-mailing-lists/
Developers Guide: http://www.mygrid.org.uk/tools/developer-information

Reply via email to