读书人

eclipse+tomcat 远路调试

发布时间: 2012-09-25 09:55:59 作者: rapoo

eclipse+tomcat 远程调试

1、将以上代码贴到catalina.bat的开头处,8000为远程调试默认端口,可以自定义!

?

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

?

2.在eclipse工具栏中找到debug,下来找到debug configurations ,然后再弹出的界面中,

? 填写工程名:CIIMSS,address: localhost,port:8000,如果虚拟机在远程,

? 则勾选Allow termination of remote VM

?

?

3.点击“debug”,则可以在eclipse中打断点,访问程序,进行调试!

读书人网 >Eclipse开发

热点推荐