码迷,mamicode.com
首页 > 其他好文 > 详细

Intellij IDEA远程调试tomcat

时间:2017-07-13 12:05:17      阅读:138      评论:0      收藏:0      [点我收藏+]

标签:log   pad   .bat   server   pos   article   lin   mono   nts   

1、windows系统

文件catalina.bat首行增加下面代码

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

启动

startup.bat
2、linux系统

文件catalina.sh首行增加下面代码

declare -x CATALINA_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=58000" 

启动

./startup.sh

加入remote改动host和port

技术分享技术分享

点击debug就可以实现远程调试啦!!

Intellij IDEA远程调试tomcat

标签:log   pad   .bat   server   pos   article   lin   mono   nts   

原文地址:http://www.cnblogs.com/cxchanpin/p/7159718.html

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