Java Remote Debugging Web Application Steps

Java Remote Debugging Web Application Steps:

Java web applications are complex to setup and do debugging all the time for all the issues. In those cases, we can smartly keep the code deployed currently in local and just do remote debugging to figure out the issues.

It is much easy with IBM WebSphere or Eclipse.

Step 1:

Add these two entries in your web application server consoles / jvm properties:

-Dwas.debug.mode=true
-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=13123

 

Step 2:

And in Eclipse,

Debug as -> Configurations -> Remote Java Application:

Host: Server name where your application deployed (application server)
Port: (Port which you configured above in jvm properties of the application server console).

 

Example:

Host:javadomain.com
Port:13123

 

 

Leave a Reply