Debug Ant classes [message #313022] |
Wed, 28 February 2007 01:01  |
Eclipse User |
|
|
|
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   |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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.
>>>
>>
>>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.47461 seconds