tomcat6添加debug端口

默认的tomcat貌似没有开启,需要在起送的参数中加入端口号,这样eclipse或者idea这类ide工具就可以通过远程debug调试程序了

 

具体做法:

在catalina.bat文件中的开头加入(我是加在开头,不是一定)

SET CATALINA_OPTS=-server -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8787


红色部分为debug的端口,ide中连接这个端口即可

posted @ 2010-02-17 15:48  雪霁霜飞  阅读(1500)  评论(0编辑  收藏  举报