• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Jeanne Boyarsky
  • Tim Cooke
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
Bartenders:

Eclipse & Ant Debug

 
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, I need some tips to set up the Eclipse with Ant for debugging case.
Can anyone offer some good links or suggestions?
Thanks.
Roy
 
author
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you want to debug an Ant script, take a look at Window|Preferences|External Tools
If not, what *do* you want to do?
 
Roy Huang
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, Thanks.
Yes, I have already set my Ant Task as an external tool there, but how can I debug under Ant model. Ex. I set a�breakpoint in the cource code, and then run the external Ant, if the problem occurs, I can find it through the break point.
How can I run debug under external Ant command in Eclipse environment?
Roy
 
Ilja Preuss
author
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Do you want to debug a custom ant task, or a java program that gets executed through ant (e.g. called by the java task)?
 
Roy Huang
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I need to debug the latter. The Ant task has shown a error to me, I'm sure it is from 3 lines of the related code, so I wnat to debug it iwth the setting of the breakpoint but I can only run the external ant tool and don't know how to debug in Eclispe. I have tried with the debug view and tried to highlight some code "system.out.println()" in the display window, and use display or inspector function to show the value, but it failed.
 
Ilja Preuss
author
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Why don't you start the program directly from eclipse? That would make debugging much easier (in fact, I wouldn't know how to help you when using the other way...).
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic