首页 > 代码库 > idea+tomcat 远程dubug

idea+tomcat 远程dubug

startenv.sh:

export JAVA_OPTS=$JAVA_OPTS" -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=127.0.0.1:60001"

 

开启socat

socat TCP4-LISTEN:50001,fork,range=100.80.181.41/32 TCP4:127.0.0.1:60001

100.80.181.41为本地ip

 

idea进行配置就好

技术分享

 

idea+tomcat 远程dubug