1. log on to the environment and modify the configuration file of tomcat in the environment. Modify Catalina. SH and startup. Sh in the bin folder of Tomcat.
STEP (1): Modify the Catalina. Sh file:
Add the following content to the first line of the file:
Jpda_address = 15888 15888 is the port number
STEP (2): Modify the startup. Sh file:
Modify the following content in the last line of the file:
Exec "$ prgdir"/"$ executable" JPDA start "[email protected]" add a JPDA Field
2. Select project debug in eclipse
STEP (1): Click the beetle on Eclipse and select debug deployments.
STEP (2): On the debug deployments page, select remote Java application and Right-click a new debug project.
Step (3): Enter the following information in the connect directory:
Project: select a debug project.
HOST: single-board environment IP Address
Port: Port Number of the Single Board Environment
Step (4): In the source directory, first remove the project that requires debugging for the existing default project add