Java remote debug with Eclipse

I have spent days trying to debug one of the applications I deployed to WebLogic Server. Here is some basic steps of settings we need to do:

  1. Compile all the codes IN DEBUG MODE.
  2. JAR-WAR-EAR the project.
  3. Before deploying to Weblogic Server, check managed server settings for enabling DEBUG MODE + DEBUG PORT (YOU WILL NEED THIS PORT LATER)
  4. Deploy project onto WebLogic Server.
  5. Create a project and link all the source code to it. Open the class you want to debug with.
  6. Select “Debug Configuration”.
  7. Find “Remote Java Application” at left side and double click(or you can click “New launch configuration”)
  8. Setup host(me as “localhost”), and DEBUG PORT (sepecified in JVM setting on WebLogic). Click “Debug”. Done.
  9. Manipulate breakpoints as local application.

Leave a Reply