remote debug maven

1. Modify the tomcat server configuration

Open the tomcat / bin / catalina.sh
Add parameters
      CATALINA_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,address=xxx.xxx.xx.xx:60222,suspend=n,server=y"
Description: address for the tomcat server ip address, where you must fill in (if LAN ip, to fill LAN ip, ip if you do not fill, probably will start with the loopback address 127.0.0.1, resulting in failure DEBUG). Port number easily defined, it can not be occupied
Catalina.sh way to start tomcat
sh catalina.sh start
At this point, the server configuration is completed
 
2.IDEA Configuration
a. 配置 remote tomcat
 

 

b modification parameter (in addition to the general modifications ip and port can be selected by default)

 

c. debug start remote tomcat

Note: debug process should be consistent with the code for remote code, if the code does not appear to skip error code execution may be due to inconsistencies lead to remote code locally

END

 

 

Guess you like

Origin www.cnblogs.com/chaiquan/p/12034274.html