Use myeclipse to debug Java Web applications in remote JBoss

Source: Internet
Author: User

 

Objectives:

An existing ERP system is deployed and runs in JBoss of a Linux system. Due to frequent system problems, you need to configure myeclipse to remotely debug the online system. The source code of the online running system is in myeclipse.

 

How:

Step 1:

Open the <JBOSS-HOME>/bin/run. conf configuration file on the Linux server and add:

 

Java_opts = "-xdebug-xnoagent-xrunjdwp: Server = Y, transport = dt_socket, address = 8787, suspend = N $ java_opts"

 

In this way, we add a 8787 debug port to the server.

 

Step 2: Configure debug in myeclipse.

Open the run à run configuration, such:

 

Add a configuration in remote Java application and click debug to go to remote debugging. You only need to set a breakpoint where you want to schedule the task. Note that the source code in myeclipse must be consistent with that running on the remote machine.

 

Let's take a look at the debugging results:

 

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.