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: