How to debug a Java application

We use weblogic 9.2 and its UI application. How I run it - through an ant script I build a complete project and then start weblogics.

Suppose you need to debug an application - by checking some values ​​in java files that are reflected in my JSP files, how do I do this?

I just went to setServerEnv.bat inside the weblogic folder and set debugging options to start weblogic in debug mode. But my question is: how do I debug? If I put some toggle switches in Eclipse, will it work? Or I need to use some data / debug log to view the values ​​from time to time.

+4
source share
2 answers

You can connect via remote debugger from Eclipse to your program code running in Weblogic. As long as the source and byte codes match, it will stop at the right place in your source for all set breakpoints.

Note that if you change the source code without re-creating / redeploying the breakpoints, it will still stop, but the breakpoint will be wrong, just something to consider.

+5
source

You will need to create a new “Remote Debug Configuration” in Eclipse. For more information, you can check, for example, this article . That is, if you correctly started the application server in debug mode.

+1
source

All Articles