Myeclipse remote debugging Tomcat and JBoss Server Configuration

Source: Internet
Author: User
Tags jboss server

SometimesProgramWhen running on the server, an error is reported. Apart from looking at the poor log to locate the problem, the remote debugging method can locate the problem most quickly, common application servers are Tomcat and JBoss.

 

Tomcat configuration:
Open the file Catalina. bat under % cataline_home %/bin and add the following line:
Set catalina_opts =-server-xdebug-xnoagent-djava. compiler = none-xrunjdwp: Transport = dt_socket, Server = Y, suspend = N, address = 8787

Address = 8787 is the unused port number. There are two Connection Methods: dt_shmem and dt_socket, which indicate local debugging and remote debugging respectively.

JBoss Configuration:
Find the run. conf file in the jboss_home/bin directory and find:
# Java_opts = "$ java_opts-xdebug-xrunjdwp: Transport = dt_socket, address = 8787, Server = Y, suspend = y"
Modify it:
Java_opts = "$ java_opts-xdebug-xrunjdwp: Transport = dt_socket, address = 8787, Server = Y, suspend = N"

 

After configuration, open the following view in myeclipse and enter the IP address and port number of the host where the server is located:

 

OK.

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.