Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Debug Ant classes
Debug Ant classes [message #313022] Wed, 28 February 2007 01:01 Go to next message
Eclipse UserFriend
I'm wondering how I can debug classes executed from Ant tasks by setting
breakpoints in them? Setting breakpoints in the Ant file itself works, but I
can't get breakpoints to take effect when they are in classes called as a
part of Ant task execution.

Any suggestions for how I can get this to work? Thanks.
Re: Debug Ant classes [message #313053 is a reply to message #313022] Wed, 28 February 2007 10:35 Go to previous messageGo to next message
Eclipse UserFriend
Ant is just a Java program.
So this can be achieved currently but you need to set up two debug sessions.
Start the Ant debugger to debug your Ant buildfile xml and also specify the
following VM arguments:
-Xdebug -Xnoagent -Djava.compiler=NONE -
Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000

The start a second "Remote Java Application" debug session. This session can
be
used to hit Java breakpoints, step through Java code
etc.HTHDarinshttps://bugs.eclipse.org/bugs/show_bug.cgi?id=8 0553"VK"
<veerukrishnan@hotmail.com> wrote in message
news:es35sg$242$1@utils.eclipse.org...
> I'm wondering how I can debug classes executed from Ant tasks by setting
> breakpoints in them? Setting breakpoints in the Ant file itself works, but
> I can't get breakpoints to take effect when they are in classes called as
> a part of Ant task execution.
>
> Any suggestions for how I can get this to work? Thanks.
>
Re: Debug Ant classes [message #313121 is a reply to message #313053] Fri, 02 March 2007 01:01 Go to previous messageGo to next message
Eclipse UserFriend
Thanks for your response. Let me see if I understand what to do:

In the "External Tools" menu for my Ant buildfile whose tasks I'd like to
debug, I set the VM arguments you specified under JRE. Regarding the Remote
Java Application settings you mentioned, however, I go into the Remote Java
Application menu but don't know what any of the settings should be.

When I actually run the Ant build, would I click the debugger or the
external tools button in my toolbar to get it going?

Also, what do you mean by "Ant debugger" - what does this refer to?

Thanks.


"Darin Swanson" <Darin_Swanson@us.ibm.com> wrote in message
news:es47f2$hti$1@utils.eclipse.org...
> Ant is just a Java program.
> So this can be achieved currently but you need to set up two debug
> sessions.
> Start the Ant debugger to debug your Ant buildfile xml and also specify
> the following VM arguments:
> -Xdebug -Xnoagent -Djava.compiler=NONE -
> Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000
>
> The start a second "Remote Java Application" debug session. This session
> can be
> used to hit Java breakpoints, step through Java code
> etc.HTHDarinshttps://bugs.eclipse.org/bugs/show_bug.cgi?id=8 0553"VK"
> <veerukrishnan@hotmail.com> wrote in message
> news:es35sg$242$1@utils.eclipse.org...
>> I'm wondering how I can debug classes executed from Ant tasks by setting
>> breakpoints in them? Setting breakpoints in the Ant file itself works,
>> but I can't get breakpoints to take effect when they are in classes
>> called as a part of Ant task execution.
>>
>> Any suggestions for how I can get this to work? Thanks.
>>
>
>
Re: Debug Ant classes [message #313186 is a reply to message #313121] Tue, 06 March 2007 14:49 Go to previous message
Eclipse UserFriend
I've tried a variety of combinations of the settings, but I think I'm not
even on the right track. Any further guidance would be appreciated. Thanks a
lot.


"VK" <veerukrishnan@hotmail.com> wrote in message
news:es8ejh$6i5$1@utils.eclipse.org...
> Thanks for your response. Let me see if I understand what to do:
>
> In the "External Tools" menu for my Ant buildfile whose tasks I'd like to
> debug, I set the VM arguments you specified under JRE. Regarding the
> Remote Java Application settings you mentioned, however, I go into the
> Remote Java Application menu but don't know what any of the settings
> should be.
>
> When I actually run the Ant build, would I click the debugger or the
> external tools button in my toolbar to get it going?
>
> Also, what do you mean by "Ant debugger" - what does this refer to?
>
> Thanks.
>
>
> "Darin Swanson" <Darin_Swanson@us.ibm.com> wrote in message
> news:es47f2$hti$1@utils.eclipse.org...
>> Ant is just a Java program.
>> So this can be achieved currently but you need to set up two debug
>> sessions.
>> Start the Ant debugger to debug your Ant buildfile xml and also specify
>> the following VM arguments:
>> -Xdebug -Xnoagent -Djava.compiler=NONE -
>> Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000
>>
>> The start a second "Remote Java Application" debug session. This session
>> can be
>> used to hit Java breakpoints, step through Java code
>> etc.HTHDarinshttps://bugs.eclipse.org/bugs/show_bug.cgi?id=8 0553"VK"
>> <veerukrishnan@hotmail.com> wrote in message
>> news:es35sg$242$1@utils.eclipse.org...
>>> I'm wondering how I can debug classes executed from Ant tasks by setting
>>> breakpoints in them? Setting breakpoints in the Ant file itself works,
>>> but I can't get breakpoints to take effect when they are in classes
>>> called as a part of Ant task execution.
>>>
>>> Any suggestions for how I can get this to work? Thanks.
>>>
>>
>>
>
>
Previous Topic:Log4j LinkageError when invoking from a view
Next Topic:[Plugin Dev] Customizing Workspace Chooser
Goto Forum:
  


Current Time: Tue Jun 03 06:45:06 EDT 2025

Powered by FUDForum. Page generated in 0.47461 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top