To debug with eclipse to remote server follow below instructions
In the menu Run –> Debug configurations…
In the window popup select Remote Java Application
Right click, then select New
On the right a new fieldset appears
In the Project field browse the java project to attach
In the Connection Type field:
The listening port, in both case (local and remote), must be preconfigured setting, as jvm parameters, the following:
-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=4000
The JDWP protocol is the protocol used to debug with a remote debugger.
For example, in WebLogic server, to allow a debug socket listener, in the file “startWebLogic.cmd” add to the JAVA OPTIONS:
set JAVA_OPTIONS=-<others params> Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=4000,server=y,suspend=n
The -Xnoagent parameter disables the default sun.tools.debug debug agent
Just a little notice: if you want to debug clustered application, you have to attach the debug ide to all clustered servers, otherwise you need to be lucky to get the request to your debugged server
Curiosity: default debug port on weblogic 12.1.3 is 8453