• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Scott Selikoff
Bartenders:
  • Piet Souris
  • Jj Roberts
  • fred rosenberger

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...).
 
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic