IDEA remote debug line project (practical operation Edition)

# 1. Locate and open the file in the search catalina.sh bin directory on the server tomcat: `` `JPDA_ADDRESS =` `` did not find a port to be used on the server, fill, such as 50005, save and exit. > How do I know if a port is not occupied> Command:?> `` `> Lsof -i: 50005>` ``> pid value does not display that is not occupied, otherwise, try to re-elect a port. Modify the effect after completion:! [] (Https://img2018.cnblogs.com/blog/1558389/201909/1558389-20190924001716800-815012169.png) # 2. kill the original service `` `./shutdown.sh `` `# 3. start the service using the command sh catalina.sh jdpa start service to boot (be sure to note: Do not restart the original service that ./start.sh)` `` sh catalina.sh jpda start `` `# 4.1 4. configure IDEA associated fill in the appropriate information in the Run / Debug Configurations IDEA in - ip and port. ! [] (Https://img2018.cnblogs.com/blog/1558389/201909/1558389-20190924001717065-1762371216.png) 4.2 click debug, start local service! [] (Https://img2018.cnblogs.com/blog /1558389/201909/1558389-20190924001717326-1590578785.png)> how to determine whether the remote debug successful operation?> see the console the following message appears, that is, remote debug success. >> [] (Https:! //Img2018.cnblogs.

Guess you like

Origin www.cnblogs.com/xiazuomo/p/11576000.html