I have all the java source codes, and I use ant builds to pack them into a .EAR file and deploy to local Web logic instance(localhost:7001) running on my windows machine, then can I use eclipse to debug it ?
If yes, please let me know how to do it.
I have all the java source codes, and I use ant builds to pack them into a .EAR file and deploy to local Web logic instance(localhost:7001) running on my windows machine, then can I use eclipse to debug it ?
If yes, please let me know how to do it.
It would be easy to debug if you install weblogic server adapter and run the weblogic from eclipse. Else you will have to go for remote debugging for a deployed app which has already been answered on stack overflow. Pls follow below link
how to debug java web application in eclips with weblogic server
Basically, I have to change the ant's build.xml to allow the debug at runtime. I have added the following code to the compile options in build.xml:
Add the debug="true" debuglevel="lines,vars,source" includeantruntime="true" to all the instances of javac in build.xml.
But still you might get the "line numbers not generated exception", you can safely ignore that as our debugger stops at the breakpoint.