0

I am currently developing an Web Application using struts and Eclipse and JBoss 5.0 .I am Using Ant to compile and build the war structure, The web application is running successfully in Jboss and eclipse. But when comes to debugging point of view, while I am putting breakpoints in eclipse, the debugger is stopping at that breakpoint ( it does'nt even showing a attach source in eclipse) . I would like to know how can I debug my Java Code through the ant tool and eclipse.

I saw the similar question here. but it doesnt helped me.

Thanks for help in advance.

Community
  • 1
  • 1
Mohasin Ali
  • 3,955
  • 1
  • 20
  • 24

2 Answers2

2

I found what I've missed in the build.xml. We should provide debug=true attribute while compiling our source code in Ant.

 <javac srcdir="${src.dir}" destdir="${build.dir}/WEB-INF/classes" debug="true" >
     <classpath refid="classpath"/>
 </javac>
Aniket Sinha
  • 6,001
  • 6
  • 37
  • 50
Mohasin Ali
  • 3,955
  • 1
  • 20
  • 24
0

It has nothing to do with ANT. You need to start JBoss in Debug mode. There are tens of articles and answers describing how to do this.

Community
  • 1
  • 1
Alexander Pranko
  • 1,859
  • 17
  • 20
  • Thanks for your reply!.. But I know how to start the server in debug mode.. And I did all the above stuff in Debug mode itself. Still it is not capturing the ant build class in eclipse-jboss debugging mode but it worked for me in Maven Builded War file. – Mohasin Ali Nov 17 '15 at 05:33