Introduction to Eclipse Debug Remote debugging method

Source: Internet
Author: User
Tags port number

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} " 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.