Two Laptop Bag*
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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
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
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16022
    
  20

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
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: 5823
    
    7

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
 
Consider Paul's rocket mass heater.
 
subject: Debug java web application using ant