File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Ant, Maven and Other Build Tools and the fly likes Debug java web application using ant Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Reply Bookmark "Debug java web application using ant" Watch "Debug java web application using ant" New topic
Author

Debug java web application using ant

shabarish vai
Ranch Hand

Joined: May 26, 2008
Posts: 79
hi all,

am using ant scripts.my build.xml is in D:\ant my build.xml is at "D"drive , build.xml file handles everything like compling java files creating war,sar ets files and finally will put it into deploy folder of j-boss. now how do i debug it.
Please help. Am using eclipse only as editor.Please help me how to debug the java files by puting break points

This message was edited 2 times. Last update was at by shabarish vai

Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 11740

You need to connect Eclipse to JBoss as a remote debug session. You then set Breakpoints on your edited code in Eclipse.

Ant doesn't really have much to do with any of this, beyond the actual build process. I recommend using the IDEs forum for further information.


A lot the of modern-day software development platforms are designed to permit parcelling out work to those with the best aptitude for it. A lot of modern-day business is predicated on making one person do all the work, regardless of aptitude.
shabarish vai
Ranch Hand

Joined: May 26, 2008
Posts: 79
hi Tim Holloway ,

thanks for the reply , but how to connect Eclipse to JBoss as a remote debug session
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 4489

Look in the run.bat for JBoss AS - there is a comment on which line to uncomment to enable you to attach a remote debugger. Then read about remote debugging in the Eclipse help text.


JBoss In Action
 
 
subject: Debug java web application using ant
 
developer file tools