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