Add the following statement to the Startweblogic.cmd:
Set Debug_opts=-xdebug-xnoagent-xrunjdwp:transport=dt_socket,server=y,address=5555,suspend=n
%java_home%/bin/java%debug_opts%%java_vm%%mem_args%%java_options%-dweblogic.name=%server_name%- dweblogic.productionmodeenabled=%production_mode%-dweblogic.management.username=%WLS_USER%- dweblogic.management.password=%wls_pw%-djava.security.policy= "%wl_home%/server/lib/weblogic.policy"
Weblogic. Server
Likewise 5555 specifies the port number for remote debugging.
This sets breakpoints in eclipse, creates new remote debugging, specifies the port and IP address, and then starts Debug.
If the report: WebLogic failed to connect to remote VM connection refused, in this way can solve the problem
When writing a shell script, be sure to pay attention to the space, such as I add that sentence under Liunx when the statement followed by a space to cause java_options can not be resolved
Under Windows:
Java_options=-djava.compiler=none-xrunjdwp:transport=dt_socket,server=y,address=1044,suspend=n-xdebug-xnoagent %java_options%
Liunx under:
java_options= "-djava.compiler=none-xrunjdwp:transport=dt_socket,server=y,address=1044,suspend=n- Xdebug-xnoagent ${java_options} "