Tomcat6.0远程调试配置
文章分类:Java编程
1、修改startup.bat 在尾部修改成以下列方式启动
- set JPDA_ADDRESS= 8787 (端口随意)
- set JPDA_TRANSPORT=dt_socket
- call "%EXECUTABLE%" jpda start
set JPDA_ADDRESS=8787(端口随意) set JPDA_TRANSPORT=dt_socket call "%EXECUTABLE%" jpda start
2、 在命令行,进入tomcat的bin目录下面,运行catalina.bat jpda start命令
若弹出的启动窗口显示:
- Listening for transport dt_socket at address: 8787
Listening for transport dt_socket at address: 8787
则说明远程调试服务器其中成功。
3、在Eclipse中配置远程调试端口,即可进行远程调试