Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » [eclipse 3.6] Antrunner is run on debug mode but cant watch variables
[eclipse 3.6] Antrunner is run on debug mode but cant watch variables [message #640781] Tue, 23 November 2010 07:14 Go to next message
jo  is currently offline jo Friend
Messages: 4
Registered: November 2010
Junior Member
Hi Everybody,

I'm debugging my program using antrunner(Eclipse Application), tried both
org.eclipse.ant.core.antRunner, and org.eclipse.ant.ui.antRunner

in the arguments part i gave these :
-consoleLog -Dbasedir=D:\Progra~1\IzPack\src\izpack\izpack-compiler\src\ test\resources\samples
-buildfile
D:\Progra~1\IzPack\src\izpack\izpack-compiler\src\test\resou rces\samples\build.xml

when I ran without the buildfile switch I get invocation errors, but with
the switch i can breakpoint to my sourcode.
the problem is, when i try to watch variables the values i get for them is
"<error(s)_during_the_evaluation>"
inside the variable navigation tree you have the child "binding == null
forkind".

anybody can give me a hint as to whats going on?

regards,
Jo
Re: [eclipse 3.6] Antrunner is run on debug mode but cant watch variables [message #640797 is a reply to message #640781] Tue, 23 November 2010 08:09 Go to previous messageGo to next message
jo  is currently offline jo Friend
Messages: 4
Registered: November 2010
Junior Member
Additional info:
When I try to inspect a variable, I get the error:
Unable to evaluate the selected expression:
To perform an evaluation, an expression must be compiled in the context of a
Java project's build path. The current execution context is not associated
with a Java project in the workspace.

The thing is..
I can't associate an Eclipse Application configuration with a specific
workspace..
so is there any work around it?

thanks a lot for any pointers..

nb:
basically my concern is how to be able to debug from an ant build file up to
the level of the java source code defining an ant taskdef in that build
file.

i could easily debug a build.xml (right clicking on the outline of the
build.xml>debug as>etc.etc..) script but it doesn't seem to be able to go
deeper to the java code.

so i took the route of debugging via the eclipse application
and then i was able to drill to the java code but then i stumbled on this
watch problem.

is this route a dead end?
any other route?

"Jo" <gl4d2bl1v1n@gmail.com> wrote in message
news:icfpbt$flj$1@news.eclipse.org...
> Hi Everybody,
>
> I'm debugging my program using antrunner(Eclipse Application), tried both
> org.eclipse.ant.core.antRunner, and org.eclipse.ant.ui.antRunner
>
> in the arguments part i gave these :
> -consoleLog -Dbasedir=D:\Progra~1\IzPack\src\izpack\izpack-compiler\src\ test\resources\samples
> -buildfile
> D:\Progra~1\IzPack\src\izpack\izpack-compiler\src\test\resou rces\samples\build.xml
>
> when I ran without the buildfile switch I get invocation errors, but with
> the switch i can breakpoint to my sourcode.
> the problem is, when i try to watch variables the values i get for them is
> "<error(s)_during_the_evaluation>"
> inside the variable navigation tree you have the child "binding == null
> forkind".
>
> anybody can give me a hint as to whats going on?
>
> regards,
> Jo
>
>
>
Re: [eclipse 3.6] Antrunner is run on debug mode but cant watch variables [message #641335 is a reply to message #640797] Thu, 25 November 2010 03:47 Go to previous message
jo  is currently offline jo Friend
Messages: 4
Registered: November 2010
Junior Member
Found out the problem.
The source that made it to the breakpoint wasn't part of a java faceted
project.

"Jo" <gl4d2bl1v1n@gmail.com> wrote in message
news:icfsj3$kj1$1@news.eclipse.org...
> Additional info:
> When I try to inspect a variable, I get the error:
> Unable to evaluate the selected expression:
> To perform an evaluation, an expression must be compiled in the context of
> a Java project's build path. The current execution context is not
> associated with a Java project in the workspace.
>
> The thing is..
> I can't associate an Eclipse Application configuration with a specific
> workspace..
> so is there any work around it?
>
> thanks a lot for any pointers..
>
> nb:
> basically my concern is how to be able to debug from an ant build file up
> to the level of the java source code defining an ant taskdef in that build
> file.
>
> i could easily debug a build.xml (right clicking on the outline of the
> build.xml>debug as>etc.etc..) script but it doesn't seem to be able to go
> deeper to the java code.
>
> so i took the route of debugging via the eclipse application
> and then i was able to drill to the java code but then i stumbled on this
> watch problem.
>
> is this route a dead end?
> any other route?
>
> "Jo" <gl4d2bl1v1n@gmail.com> wrote in message
> news:icfpbt$flj$1@news.eclipse.org...
>> Hi Everybody,
>>
>> I'm debugging my program using antrunner(Eclipse Application), tried both
>> org.eclipse.ant.core.antRunner, and org.eclipse.ant.ui.antRunner
>>
>> in the arguments part i gave these :
>> -consoleLog -Dbasedir=D:\Progra~1\IzPack\src\izpack\izpack-compiler\src\ test\resources\samples
>> -buildfile
>> D:\Progra~1\IzPack\src\izpack\izpack-compiler\src\test\resou rces\samples\build.xml
>>
>> when I ran without the buildfile switch I get invocation errors, but with
>> the switch i can breakpoint to my sourcode.
>> the problem is, when i try to watch variables the values i get for them
>> is "<error(s)_during_the_evaluation>"
>> inside the variable navigation tree you have the child "binding == null
>> forkind".
>>
>> anybody can give me a hint as to whats going on?
>>
>> regards,
>> Jo
>>
>>
>>
>
>
Previous Topic:Help Me Understanding These Classes
Next Topic:Java main() method does not run from right-click, but does run from Run Configurations
Goto Forum:
  


Current Time: Thu Apr 25 17:12:24 GMT 2024

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

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

Back to the top