Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » ant task debug
ant task debug [message #268064] Fri, 20 August 2004 15:38 Go to next message
Eclipse UserFriend
Is it possible in eclipse and how ?

thanks
Re: ant task debug [message #268072 is a reply to message #268064] Fri, 20 August 2004 13:43 Go to previous messageGo to next message
Eclipse UserFriend
If you mean step through the Java code that is behind the Ant task:

On the JRE tab for your Ant build add the following VM args




"-Xdebug -Xrundjwp:transport=dt_socket,address=locathost:8000,server= y,suspe
nd=y"
Start the Ant build. It will wait for a debug connection.
Start a Remote Java Application launch configuration using the port
specified about (8000 in this case)
Debug as normal (breakpoints, etc)

HTH
Darins

"snpe" <snpe@snpe.co.yu> wrote in message news:cg5bi1$ono$1@eclipse.org...
> Is it possible in eclipse and how ?
>
> thanks
Re: ant task debug [message #268147 is a reply to message #268072] Sun, 22 August 2004 18:44 Go to previous messageGo to next message
Eclipse UserFriend
How I can get JRE tab for ant build ?
Thanks
Darin Swanson wrote:

> If you mean step through the Java code that is behind the Ant task:
>
> On the JRE tab for your Ant build add the following VM args
>
>
>
>
> "-Xdebug
> -Xrundjwp:transport=dt_socket,address=locathost:8000,server= y,suspe nd=y"
> Start the Ant build. It will wait for a debug connection.
> Start a Remote Java Application launch configuration using the port
> specified about (8000 in this case)
> Debug as normal (breakpoints, etc)
>
> HTH
> Darins
>
> "snpe" <snpe@snpe.co.yu> wrote in message news:cg5bi1$ono$1@eclipse.org...
>> Is it possible in eclipse and how ?
>>
>> thanks
Re: ant task debug [message #268170 is a reply to message #268072] Mon, 23 August 2004 03:59 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Wolfgang.Haug[NO_SPAM].vector-consulting.de

I tried this, but if I want to start the Ant build I receive the message:
"Could not create the Java virtual machine."
What's wrong ?
If I start without the vm parameter the build is running.

Wolfgang

"Darin Swanson" <Darin_Swanson@us.ibm.com> schrieb im Newsbeitrag
news:cg5d6i$qu0$1@eclipse.org...
> If you mean step through the Java code that is behind the Ant task:
>
> On the JRE tab for your Ant build add the following VM args
>
>
>
>
>
"-Xdebug -Xrundjwp:transport=dt_socket,address=locathost:8000,server= y,suspe
> nd=y"
> Start the Ant build. It will wait for a debug connection.
> Start a Remote Java Application launch configuration using the port
> specified about (8000 in this case)
> Debug as normal (breakpoints, etc)
>
> HTH
> Darins
>
> "snpe" <snpe@snpe.co.yu> wrote in message news:cg5bi1$ono$1@eclipse.org...
> > Is it possible in eclipse and how ?
> >
> > thanks
>
>
Re: ant task debug [message #268190 is a reply to message #268170] Mon, 23 August 2004 10:16 Go to previous messageGo to next message
Eclipse UserFriend
What is JRE for ant build ? Is it global JRE in windows - preferences - java

regards
Wolfgang Haug wrote:

> I tried this, but if I want to start the Ant build I receive the message:
> "Could not create the Java virtual machine."
> What's wrong ?
> If I start without the vm parameter the build is running.
>
> Wolfgang
>
> "Darin Swanson" <Darin_Swanson@us.ibm.com> schrieb im Newsbeitrag
> news:cg5d6i$qu0$1@eclipse.org...
>> If you mean step through the Java code that is behind the Ant task:
>>
>> On the JRE tab for your Ant build add the following VM args
>>
>>
>>
>>
>>
> "-Xdebug
> -Xrundjwp:transport=dt_socket,address=locathost:8000,server= y,suspe
>> nd=y"
>> Start the Ant build. It will wait for a debug connection.
>> Start a Remote Java Application launch configuration using the port
>> specified about (8000 in this case)
>> Debug as normal (breakpoints, etc)
>>
>> HTH
>> Darins
>>
>> "snpe" <snpe@snpe.co.yu> wrote in message
>> news:cg5bi1$ono$1@eclipse.org...
>> > Is it possible in eclipse and how ?
>> >
>> > thanks
>>
>>
Re: ant task debug [message #268218 is a reply to message #268190] Mon, 23 August 2004 10:31 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Wolfgang.Haug[NO_SPAM].vector-consulting.de

YES, it is....
(Java 1.4.2_03)

"snpe" <snpe@snpe.co.yu> schrieb im Newsbeitrag
news:cgclpe$r67$1@eclipse.org...
> What is JRE for ant build ? Is it global JRE in windows - preferences -
java
>
> regards
> Wolfgang Haug wrote:
>
> > I tried this, but if I want to start the Ant build I receive the
message:
> > "Could not create the Java virtual machine."
> > What's wrong ?
> > If I start without the vm parameter the build is running.
> >
> > Wolfgang
> >
> > "Darin Swanson" <Darin_Swanson@us.ibm.com> schrieb im Newsbeitrag
> > news:cg5d6i$qu0$1@eclipse.org...
> >> If you mean step through the Java code that is behind the Ant task:
> >>
> >> On the JRE tab for your Ant build add the following VM args
> >>
> >>
> >>
> >>
> >>
> > "-Xdebug
> > -Xrundjwp:transport=dt_socket,address=locathost:8000,server= y,suspe
> >> nd=y"
> >> Start the Ant build. It will wait for a debug connection.
> >> Start a Remote Java Application launch configuration using the port
> >> specified about (8000 in this case)
> >> Debug as normal (breakpoints, etc)
> >>
> >> HTH
> >> Darins
> >>
> >> "snpe" <snpe@snpe.co.yu> wrote in message
> >> news:cg5bi1$ono$1@eclipse.org...
> >> > Is it possible in eclipse and how ?
> >> >
> >> > thanks
> >>
> >>
>
Re: ant task debug [message #268259 is a reply to message #268218] Mon, 23 August 2004 13:14 Go to previous messageGo to next message
Eclipse UserFriend
Not necessarily.
With your Ant buildfile selection, right click > Run>Ant Build...
Go to the JRE tab and set the JRE you wish to use. The build must occur in
the separate VM for this way of debugging to work.
Specify the JRE you wish to use.
(specify these CORRECT VM args there as well..sorry about that)
-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=
y,suspend=y,address=8000

HTH
Darins

"Wolfgang Haug" <Wolfgang.Haug[NO_SPAM]@vector-consulting.de> wrote in
message news:cgcut9$eva$1@eclipse.org...
> YES, it is....
> (Java 1.4.2_03)
>
> "snpe" <snpe@snpe.co.yu> schrieb im Newsbeitrag
> news:cgclpe$r67$1@eclipse.org...
> > What is JRE for ant build ? Is it global JRE in windows - preferences -
> java
> >
> > regards
> > Wolfgang Haug wrote:
> >
> > > I tried this, but if I want to start the Ant build I receive the
> message:
> > > "Could not create the Java virtual machine."
> > > What's wrong ?
> > > If I start without the vm parameter the build is running.
> > >
> > > Wolfgang
> > >
> > > "Darin Swanson" <Darin_Swanson@us.ibm.com> schrieb im Newsbeitrag
> > > news:cg5d6i$qu0$1@eclipse.org...
> > >> If you mean step through the Java code that is behind the Ant task:
> > >>
> > >> On the JRE tab for your Ant build add the following VM args
> > >>
> > >>
> > >>
> > >>
> > >>
> > > "-Xdebug
> > > -Xrundjwp:transport=dt_socket,address=locathost:8000,server= y,suspe
> > >> nd=y"
> > >> Start the Ant build. It will wait for a debug connection.
> > >> Start a Remote Java Application launch configuration using the port
> > >> specified about (8000 in this case)
> > >> Debug as normal (breakpoints, etc)
> > >>
> > >> HTH
> > >> Darins
> > >>
> > >> "snpe" <snpe@snpe.co.yu> wrote in message
> > >> news:cg5bi1$ono$1@eclipse.org...
> > >> > Is it possible in eclipse and how ?
> > >> >
> > >> > thanks
> > >>
> > >>
> >
>
>
Re: ant task debug [message #268293 is a reply to message #268259] Mon, 23 August 2004 17:32 Go to previous messageGo to next message
Eclipse UserFriend
when I do run -> ant build I get build direct , no dialog window
What is problem ?

regards
Darin Swanson wrote:

> Not necessarily.
> With your Ant buildfile selection, right click > Run>Ant Build...
> Go to the JRE tab and set the JRE you wish to use. The build must occur in
> the separate VM for this way of debugging to work.
> Specify the JRE you wish to use.
> (specify these CORRECT VM args there as well..sorry about that)
> -Xdebug -Xnoagent -Djava.compiler=NONE
> -Xrunjdwp:transport=dt_socket,server= y,suspend=y,address=8000
>
> HTH
> Darins
>
> "Wolfgang Haug" <Wolfgang.Haug[NO_SPAM]@vector-consulting.de> wrote in
> message news:cgcut9$eva$1@eclipse.org...
>> YES, it is....
>> (Java 1.4.2_03)
>>
>> "snpe" <snpe@snpe.co.yu> schrieb im Newsbeitrag
>> news:cgclpe$r67$1@eclipse.org...
>> > What is JRE for ant build ? Is it global JRE in windows - preferences -
>> java
>> >
>> > regards
>> > Wolfgang Haug wrote:
>> >
>> > > I tried this, but if I want to start the Ant build I receive the
>> message:
>> > > "Could not create the Java virtual machine."
>> > > What's wrong ?
>> > > If I start without the vm parameter the build is running.
>> > >
>> > > Wolfgang
>> > >
>> > > "Darin Swanson" <Darin_Swanson@us.ibm.com> schrieb im Newsbeitrag
>> > > news:cg5d6i$qu0$1@eclipse.org...
>> > >> If you mean step through the Java code that is behind the Ant task:
>> > >>
>> > >> On the JRE tab for your Ant build add the following VM args
>> > >>
>> > >>
>> > >>
>> > >>
>> > >>
>> > > "-Xdebug
>> > > -Xrundjwp:transport=dt_socket,address=locathost:8000,server= y,suspe
>> > >> nd=y"
>> > >> Start the Ant build. It will wait for a debug connection.
>> > >> Start a Remote Java Application launch configuration using the port
>> > >> specified about (8000 in this case)
>> > >> Debug as normal (breakpoints, etc)
>> > >>
>> > >> HTH
>> > >> Darins
>> > >>
>> > >> "snpe" <snpe@snpe.co.yu> wrote in message
>> > >> news:cg5bi1$ono$1@eclipse.org...
>> > >> > Is it possible in eclipse and how ?
>> > >> >
>> > >> > thanks
>> > >>
>> > >>
>> >
>>
>>
Re: ant task debug [message #268301 is a reply to message #268293] Mon, 23 August 2004 16:06 Go to previous messageGo to next message
Eclipse UserFriend
That would be because I said to use "Run>Ant Build..."
:-)

Darins

"snpe" <snpe@snpe.co.yu> wrote in message news:cgdfan$b87$1@eclipse.org...
> when I do run -> ant build I get build direct , no dialog window
> What is problem ?
>
> regards
> Darin Swanson wrote:
>
> > Not necessarily.
> > With your Ant buildfile selection, right click > Run>Ant Build...
> > Go to the JRE tab and set the JRE you wish to use. The build must occur
in
> > the separate VM for this way of debugging to work.
> > Specify the JRE you wish to use.
> > (specify these CORRECT VM args there as well..sorry about that)
> > -Xdebug -Xnoagent -Djava.compiler=NONE
> > -Xrunjdwp:transport=dt_socket,server= y,suspend=y,address=8000
> >
> > HTH
> > Darins
> >
> > "Wolfgang Haug" <Wolfgang.Haug[NO_SPAM]@vector-consulting.de> wrote in
> > message news:cgcut9$eva$1@eclipse.org...
> >> YES, it is....
> >> (Java 1.4.2_03)
> >>
> >> "snpe" <snpe@snpe.co.yu> schrieb im Newsbeitrag
> >> news:cgclpe$r67$1@eclipse.org...
> >> > What is JRE for ant build ? Is it global JRE in windows -
preferences -
> >> java
> >> >
> >> > regards
> >> > Wolfgang Haug wrote:
> >> >
> >> > > I tried this, but if I want to start the Ant build I receive the
> >> message:
> >> > > "Could not create the Java virtual machine."
> >> > > What's wrong ?
> >> > > If I start without the vm parameter the build is running.
> >> > >
> >> > > Wolfgang
> >> > >
> >> > > "Darin Swanson" <Darin_Swanson@us.ibm.com> schrieb im Newsbeitrag
> >> > > news:cg5d6i$qu0$1@eclipse.org...
> >> > >> If you mean step through the Java code that is behind the Ant
task:
> >> > >>
> >> > >> On the JRE tab for your Ant build add the following VM args
> >> > >>
> >> > >>
> >> > >>
> >> > >>
> >> > >>
> >> > > "-Xdebug
> >> > > -Xrundjwp:transport=dt_socket,address=locathost:8000,server= y,suspe
> >> > >> nd=y"
> >> > >> Start the Ant build. It will wait for a debug connection.
> >> > >> Start a Remote Java Application launch configuration using the
port
> >> > >> specified about (8000 in this case)
> >> > >> Debug as normal (breakpoints, etc)
> >> > >>
> >> > >> HTH
> >> > >> Darins
> >> > >>
> >> > >> "snpe" <snpe@snpe.co.yu> wrote in message
> >> > >> news:cg5bi1$ono$1@eclipse.org...
> >> > >> > Is it possible in eclipse and how ?
> >> > >> >
> >> > >> > thanks
> >> > >>
> >> > >>
> >> >
> >>
> >>
>
Re: ant task debug [message #268305 is a reply to message #268301] Mon, 23 August 2004 18:57 Go to previous messageGo to next message
Eclipse UserFriend
Darins,
I do run - > Ant Build and I don't get dialog with JRE tab
-ant current task execute direct

How I can dialog with tabs (JRE and other) with Run->Ant Build

regards
Darin Swanson wrote:

> That would be because I said to use "Run>Ant Build..."
> :-)
>
> Darins
>
> "snpe" <snpe@snpe.co.yu> wrote in message news:cgdfan$b87$1@eclipse.org...
>> when I do run -> ant build I get build direct , no dialog window
>> What is problem ?
>>
>> regards
>> Darin Swanson wrote:
>>
>> > Not necessarily.
>> > With your Ant buildfile selection, right click > Run>Ant Build...
>> > Go to the JRE tab and set the JRE you wish to use. The build must occur
> in
>> > the separate VM for this way of debugging to work.
>> > Specify the JRE you wish to use.
>> > (specify these CORRECT VM args there as well..sorry about that)
>> > -Xdebug -Xnoagent -Djava.compiler=NONE
>> > -Xrunjdwp:transport=dt_socket,server= y,suspend=y,address=8000
>> >
>> > HTH
>> > Darins
>> >
>> > "Wolfgang Haug" <Wolfgang.Haug[NO_SPAM]@vector-consulting.de> wrote in
>> > message news:cgcut9$eva$1@eclipse.org...
>> >> YES, it is....
>> >> (Java 1.4.2_03)
>> >>
>> >> "snpe" <snpe@snpe.co.yu> schrieb im Newsbeitrag
>> >> news:cgclpe$r67$1@eclipse.org...
>> >> > What is JRE for ant build ? Is it global JRE in windows -
> preferences -
>> >> java
>> >> >
>> >> > regards
>> >> > Wolfgang Haug wrote:
>> >> >
>> >> > > I tried this, but if I want to start the Ant build I receive the
>> >> message:
>> >> > > "Could not create the Java virtual machine."
>> >> > > What's wrong ?
>> >> > > If I start without the vm parameter the build is running.
>> >> > >
>> >> > > Wolfgang
>> >> > >
>> >> > > "Darin Swanson" <Darin_Swanson@us.ibm.com> schrieb im Newsbeitrag
>> >> > > news:cg5d6i$qu0$1@eclipse.org...
>> >> > >> If you mean step through the Java code that is behind the Ant
> task:
>> >> > >>
>> >> > >> On the JRE tab for your Ant build add the following VM args
>> >> > >>
>> >> > >>
>> >> > >>
>> >> > >>
>> >> > >>
>> >> > > "-Xdebug
>> >> > >
-Xrundjwp:transport=dt_socket,address=locathost:8000,server= y,suspe
>> >> > >> nd=y"
>> >> > >> Start the Ant build. It will wait for a debug connection.
>> >> > >> Start a Remote Java Application launch configuration using the
> port
>> >> > >> specified about (8000 in this case)
>> >> > >> Debug as normal (breakpoints, etc)
>> >> > >>
>> >> > >> HTH
>> >> > >> Darins
>> >> > >>
>> >> > >> "snpe" <snpe@snpe.co.yu> wrote in message
>> >> > >> news:cg5bi1$ono$1@eclipse.org...
>> >> > >> > Is it possible in eclipse and how ?
>> >> > >> >
>> >> > >> > thanks
>> >> > >>
>> >> > >>
>> >> >
>> >>
>> >>
>>
Re: ant task debug [message #268307 is a reply to message #268305] Mon, 23 August 2004 16:43 Go to previous messageGo to next message
Eclipse UserFriend
You must select "Ant Build..." (notice the three ellipsis after Ant Build).
This realizes the external tools lauch configuration dialog on that
configuration.
"Ant Build" runs the build with no configuration

HTH
Darins

"snpe" <snpe@snpe.co.yu> wrote in message news:cgdk9p$ie1$1@eclipse.org...
> Darins,
> I do run - > Ant Build and I don't get dialog with JRE tab
> -ant current task execute direct
>
> How I can dialog with tabs (JRE and other) with Run->Ant Build
>
> regards
> Darin Swanson wrote:
>
> > That would be because I said to use "Run>Ant Build..."
> > :-)
> >
> > Darins
> >
> > "snpe" <snpe@snpe.co.yu> wrote in message
news:cgdfan$b87$1@eclipse.org...
> >> when I do run -> ant build I get build direct , no dialog window
> >> What is problem ?
> >>
> >> regards
> >> Darin Swanson wrote:
> >>
> >> > Not necessarily.
> >> > With your Ant buildfile selection, right click > Run>Ant Build...
> >> > Go to the JRE tab and set the JRE you wish to use. The build must
occur
> > in
> >> > the separate VM for this way of debugging to work.
> >> > Specify the JRE you wish to use.
> >> > (specify these CORRECT VM args there as well..sorry about that)
> >> > -Xdebug -Xnoagent -Djava.compiler=NONE
> >> > -Xrunjdwp:transport=dt_socket,server= y,suspend=y,address=8000
> >> >
> >> > HTH
> >> > Darins
> >> >
> >> > "Wolfgang Haug" <Wolfgang.Haug[NO_SPAM]@vector-consulting.de> wrote
in
> >> > message news:cgcut9$eva$1@eclipse.org...
> >> >> YES, it is....
> >> >> (Java 1.4.2_03)
> >> >>
> >> >> "snpe" <snpe@snpe.co.yu> schrieb im Newsbeitrag
> >> >> news:cgclpe$r67$1@eclipse.org...
> >> >> > What is JRE for ant build ? Is it global JRE in windows -
> > preferences -
> >> >> java
> >> >> >
> >> >> > regards
> >> >> > Wolfgang Haug wrote:
> >> >> >
> >> >> > > I tried this, but if I want to start the Ant build I receive the
> >> >> message:
> >> >> > > "Could not create the Java virtual machine."
> >> >> > > What's wrong ?
> >> >> > > If I start without the vm parameter the build is running.
> >> >> > >
> >> >> > > Wolfgang
> >> >> > >
> >> >> > > "Darin Swanson" <Darin_Swanson@us.ibm.com> schrieb im
Newsbeitrag
> >> >> > > news:cg5d6i$qu0$1@eclipse.org...
> >> >> > >> If you mean step through the Java code that is behind the Ant
> > task:
> >> >> > >>
> >> >> > >> On the JRE tab for your Ant build add the following VM args
> >> >> > >>
> >> >> > >>
> >> >> > >>
> >> >> > >>
> >> >> > >>
> >> >> > > "-Xdebug
> >> >> > >
> -Xrundjwp:transport=dt_socket,address=locathost:8000,server= y,suspe
> >> >> > >> nd=y"
> >> >> > >> Start the Ant build. It will wait for a debug connection.
> >> >> > >> Start a Remote Java Application launch configuration using the
> > port
> >> >> > >> specified about (8000 in this case)
> >> >> > >> Debug as normal (breakpoints, etc)
> >> >> > >>
> >> >> > >> HTH
> >> >> > >> Darins
> >> >> > >>
> >> >> > >> "snpe" <snpe@snpe.co.yu> wrote in message
> >> >> > >> news:cg5bi1$ono$1@eclipse.org...
> >> >> > >> > Is it possible in eclipse and how ?
> >> >> > >> >
> >> >> > >> > thanks
> >> >> > >>
> >> >> > >>
> >> >> >
> >> >>
> >> >>
> >>
>
Re: ant task debug [message #268318 is a reply to message #268259] Mon, 23 August 2004 17:34 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mark.melvin.dspfactory.com

This is definitely the tip of the day for me! I was wondering how in
the world I was going to debug my buildfiles and I stumbled across this
thread, and voila! It worked, and helped me solve a nasty bug. Is this
magical string of vmargs in the help somewhere? There is no wa I would
have ever figured this out...but I can be pretty thick at times...

Mark.

Darin Swanson wrote:

> Not necessarily.
> With your Ant buildfile selection, right click > Run>Ant Build...
> Go to the JRE tab and set the JRE you wish to use. The build must occur in
> the separate VM for this way of debugging to work.
> Specify the JRE you wish to use.
> (specify these CORRECT VM args there as well..sorry about that)
> -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=
> y,suspend=y,address=8000
>
> HTH
> Darins
>
> "Wolfgang Haug" <Wolfgang.Haug[NO_SPAM]@vector-consulting.de> wrote in
> message news:cgcut9$eva$1@eclipse.org...
>
>>YES, it is....
>>(Java 1.4.2_03)
>>
>>"snpe" <snpe@snpe.co.yu> schrieb im Newsbeitrag
>>news:cgclpe$r67$1@eclipse.org...
>>
>>>What is JRE for ant build ? Is it global JRE in windows - preferences -
>>
>>java
>>
>>>regards
>>>Wolfgang Haug wrote:
>>>
>>>
>>>>I tried this, but if I want to start the Ant build I receive the
>>
>>message:
>>
>>>>"Could not create the Java virtual machine."
>>>>What's wrong ?
>>>>If I start without the vm parameter the build is running.
>>>>
>>>>Wolfgang
>>>>
>>>>"Darin Swanson" <Darin_Swanson@us.ibm.com> schrieb im Newsbeitrag
>>>>news:cg5d6i$qu0$1@eclipse.org...
>>>>
>>>>>If you mean step through the Java code that is behind the Ant task:
>>>>>
>>>>>On the JRE tab for your Ant build add the following VM args
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>"-Xdebug
>>>> -Xrundjwp:transport=dt_socket,address=locathost:8000,server= y,suspe
>>>>
>>>>>nd=y"
>>>>>Start the Ant build. It will wait for a debug connection.
>>>>>Start a Remote Java Application launch configuration using the port
>>>>>specified about (8000 in this case)
>>>>>Debug as normal (breakpoints, etc)
>>>>>
>>>>>HTH
>>>>>Darins
>>>>>
>>>>>"snpe" <snpe@snpe.co.yu> wrote in message
>>>>>news:cg5bi1$ono$1@eclipse.org...
>>>>>
>>>>>>Is it possible in eclipse and how ?
>>>>>>
>>>>>>thanks
>>>>>
>>>>>
>>
>
>
Re: ant task debug [message #268321 is a reply to message #268318] Mon, 23 August 2004 18:19 Go to previous messageGo to next message
Eclipse UserFriend
Not in the help...we ran out of time for beefing up the Ant doc for 3.0.
But it is not special to Ant...these VM args are valid to remote debug any
VM session.

We have a deferred Ant enhancement to essentially set up a launch
configuration that would take care of these pesky details for you.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=24130

Darins

"Mark Melvin" <mark.melvin@dspfactory.com> wrote in message
news:cgdnnu$nd5$1@eclipse.org...
> This is definitely the tip of the day for me! I was wondering how in
> the world I was going to debug my buildfiles and I stumbled across this
> thread, and voila! It worked, and helped me solve a nasty bug. Is this
> magical string of vmargs in the help somewhere? There is no wa I would
> have ever figured this out...but I can be pretty thick at times...
>
> Mark.
>
> Darin Swanson wrote:
>
> > Not necessarily.
> > With your Ant buildfile selection, right click > Run>Ant Build...
> > Go to the JRE tab and set the JRE you wish to use. The build must occur
in
> > the separate VM for this way of debugging to work.
> > Specify the JRE you wish to use.
> > (specify these CORRECT VM args there as well..sorry about that)
>
> -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,serve
r=
> > y,suspend=y,address=8000
> >
> > HTH
> > Darins
> >
> > "Wolfgang Haug" <Wolfgang.Haug[NO_SPAM]@vector-consulting.de> wrote in
> > message news:cgcut9$eva$1@eclipse.org...
> >
> >>YES, it is....
> >>(Java 1.4.2_03)
> >>
> >>"snpe" <snpe@snpe.co.yu> schrieb im Newsbeitrag
> >>news:cgclpe$r67$1@eclipse.org...
> >>
> >>>What is JRE for ant build ? Is it global JRE in windows - preferences -
> >>
> >>java
> >>
> >>>regards
> >>>Wolfgang Haug wrote:
> >>>
> >>>
> >>>>I tried this, but if I want to start the Ant build I receive the
> >>
> >>message:
> >>
> >>>>"Could not create the Java virtual machine."
> >>>>What's wrong ?
> >>>>If I start without the vm parameter the build is running.
> >>>>
> >>>>Wolfgang
> >>>>
> >>>>"Darin Swanson" <Darin_Swanson@us.ibm.com> schrieb im Newsbeitrag
> >>>>news:cg5d6i$qu0$1@eclipse.org...
> >>>>
> >>>>>If you mean step through the Java code that is behind the Ant task:
> >>>>>
> >>>>>On the JRE tab for your Ant build add the following VM args
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>
> >>>>"-Xdebug
> >>>> -Xrundjwp:transport=dt_socket,address=locathost:8000,server= y,suspe
> >>>>
> >>>>>nd=y"
> >>>>>Start the Ant build. It will wait for a debug connection.
> >>>>>Start a Remote Java Application launch configuration using the port
> >>>>>specified about (8000 in this case)
> >>>>>Debug as normal (breakpoints, etc)
> >>>>>
> >>>>>HTH
> >>>>>Darins
> >>>>>
> >>>>>"snpe" <snpe@snpe.co.yu> wrote in message
> >>>>>news:cg5bi1$ono$1@eclipse.org...
> >>>>>
> >>>>>>Is it possible in eclipse and how ?
> >>>>>>
> >>>>>>thanks
> >>>>>
> >>>>>
> >>
> >
> >
Re: ant task debug [message #268331 is a reply to message #268307] Mon, 23 August 2004 21:31 Go to previous message
Eclipse UserFriend
Thanks a lot, Darin

best regards
Darin Swanson wrote:

> You must select "Ant Build..." (notice the three ellipsis after Ant
> Build). This realizes the external tools lauch configuration dialog on
> that configuration.
> "Ant Build" runs the build with no configuration
>
> HTH
> Darins
>
> "snpe" <snpe@snpe.co.yu> wrote in message news:cgdk9p$ie1$1@eclipse.org...
>> Darins,
>> I do run - > Ant Build and I don't get dialog with JRE tab
>> -ant current task execute direct
>>
>> How I can dialog with tabs (JRE and other) with Run->Ant Build
>>
>> regards
>> Darin Swanson wrote:
>>
>> > That would be because I said to use "Run>Ant Build..."
>> > :-)
>> >
>> > Darins
>> >
>> > "snpe" <snpe@snpe.co.yu> wrote in message
> news:cgdfan$b87$1@eclipse.org...
>> >> when I do run -> ant build I get build direct , no dialog window
>> >> What is problem ?
>> >>
>> >> regards
>> >> Darin Swanson wrote:
>> >>
>> >> > Not necessarily.
>> >> > With your Ant buildfile selection, right click > Run>Ant Build...
>> >> > Go to the JRE tab and set the JRE you wish to use. The build must
> occur
>> > in
>> >> > the separate VM for this way of debugging to work.
>> >> > Specify the JRE you wish to use.
>> >> > (specify these CORRECT VM args there as well..sorry about that)
>> >> > -Xdebug -Xnoagent -Djava.compiler=NONE
>> >> > -Xrunjdwp:transport=dt_socket,server= y,suspend=y,address=8000
>> >> >
>> >> > HTH
>> >> > Darins
>> >> >
>> >> > "Wolfgang Haug" <Wolfgang.Haug[NO_SPAM]@vector-consulting.de> wrote
> in
>> >> > message news:cgcut9$eva$1@eclipse.org...
>> >> >> YES, it is....
>> >> >> (Java 1.4.2_03)
>> >> >>
>> >> >> "snpe" <snpe@snpe.co.yu> schrieb im Newsbeitrag
>> >> >> news:cgclpe$r67$1@eclipse.org...
>> >> >> > What is JRE for ant build ? Is it global JRE in windows -
>> > preferences -
>> >> >> java
>> >> >> >
>> >> >> > regards
>> >> >> > Wolfgang Haug wrote:
>> >> >> >
>> >> >> > > I tried this, but if I want to start the Ant build I receive
>> >> >> > > the
>> >> >> message:
>> >> >> > > "Could not create the Java virtual machine."
>> >> >> > > What's wrong ?
>> >> >> > > If I start without the vm parameter the build is running.
>> >> >> > >
>> >> >> > > Wolfgang
>> >> >> > >
>> >> >> > > "Darin Swanson" <Darin_Swanson@us.ibm.com> schrieb im
> Newsbeitrag
>> >> >> > > news:cg5d6i$qu0$1@eclipse.org...
>> >> >> > >> If you mean step through the Java code that is behind the Ant
>> > task:
>> >> >> > >>
>> >> >> > >> On the JRE tab for your Ant build add the following VM args
>> >> >> > >>
>> >> >> > >>
>> >> >> > >>
>> >> >> > >>
>> >> >> > >>
>> >> >> > > "-Xdebug
>> >> >> > >
>> -Xrundjwp:transport=dt_socket,address=locathost:8000,server= y,suspe
>> >> >> > >> nd=y"
>> >> >> > >> Start the Ant build. It will wait for a debug connection.
>> >> >> > >> Start a Remote Java Application launch configuration using the
>> > port
>> >> >> > >> specified about (8000 in this case)
>> >> >> > >> Debug as normal (breakpoints, etc)
>> >> >> > >>
>> >> >> > >> HTH
>> >> >> > >> Darins
>> >> >> > >>
>> >> >> > >> "snpe" <snpe@snpe.co.yu> wrote in message
>> >> >> > >> news:cg5bi1$ono$1@eclipse.org...
>> >> >> > >> > Is it possible in eclipse and how ?
>> >> >> > >> >
>> >> >> > >> > thanks
>> >> >> > >>
>> >> >> > >>
>> >> >> >
>> >> >>
>> >> >>
>> >>
>>
Previous Topic:TreeViewer - releaseWidget() throws NullPointerException
Next Topic:Java program runs fine on one workstation, not on another...
Goto Forum:
  


Current Time: Fri May 09 05:31:54 EDT 2025

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

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

Back to the top