Eclipse remote debugging tomcat

1. Set catalina.sh

export JRE_HOME="/mnt/server/jdk8"
export JPDA_ADDRESS="ip:8000"

2. Check that the machine's external port 8000 is open;

3. Eclipse establishes a debug link

  and selects debug configuration under the eclipse menu, Then select the "Remote Java Application" menu, right-click, and select "New".

In the pop-up box, select the project to be debugged with breakpoints, define where our web project is placed, fill in its ip and the provided service port number, this version of tomcat is 8000. Finally, select the source tag and put the source code of the project Join, I generally choose to add a java project to
   run this remotejavaapplication. Add a breakpoint in the local source file, and then request the link of the service, which is successful.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326354313&siteId=291194637
Recommended