linux环境下tomcat配置远程debug端口

1、修改tomcat容器下面的/bin/catalina.sh文件

     if [ "$1" = "jpda" ] ; then
     if [ -z "$JPDA_TRANSPORT" ]; then
            JPDA_TRANSPORT="dt_socket"
      fi
      if [ -z "$JPDA_ADDRESS" ]; then
            JPDA_ADDRESS="8000"
      fi

     

2、使用debug启动命令

     ./catalina.sh jpda start    或    ./catalina.sh jpda run

你可能感兴趣的:(tomcat)