码迷,mamicode.com
首页 > 系统相关 > 详细

eclipse - tomcat 远程调试

时间:2016-07-03 18:58:35      阅读:169      评论:0      收藏:0      [点我收藏+]

标签:

步骤:前提是tomcat上应用是eclipse打包部署上去的,代码一致。

  1,在机器A上部署应用remote-debug之前,需要为机器A上的tomcat配置调试端口。在${tomcat}/bin下加个debug.bat/sh内容为

    set JPDA_ADDRESS=8000
    set JPDA_TRANSPORT=dt_socket
    catalina.bat jpda start
    设置调试端口为8000,开启debug.bat。可以访问应用http://192.168.100.112:8080/remote-debug/xxx.
2,在eclipse调试机器B上选择remote-debug应用,配置debug Configuration;
技术分享
可参考:http://blog.csdn.net/sunyujia/article/details/2614614
   :http://blog.sina.com.cn/s/blog_86a6730b0101iean.html
3。在步骤2上点击apply->debug.绿条走完证明调试准备好。
4. 在机器B调试的代码上设置断点,
5.在机器B浏览器上键入http://192.168.100.112:8080/remote-debug/xxx,即可进行断点调试
 
 

eclipse - tomcat 远程调试

标签:

原文地址:http://www.cnblogs.com/daxiong225/p/5638353.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!