Posted on 2009-08-13 10:42
bruce.peng 阅读(229)
评论(0) 编辑 收藏
1st stp:
update the tomcat's catalina.bat file:
added on line under
:gotTmpdir
set JAVA_OPTS=%JAVA_OPTS% -agentlib:jdwp=transport=dt_socket,server=y,address=8000 -Xms256m -Xmx1024m
at here, we added listen for 8000, and also add memory for tomcat jvm.
2nd stp:
confin the eclipse
1, open "Debug Configurations" dialog window.
2, found the "Remote java Application" and right click -> click "new" action
3, select connect tab and config the project which deploy to war.
4, select source tab, and added the projects what would u want debug.
for now every things is okay, we start tomcat.
tomcat should be listen foe 8000 and waiting for that.
start the debug that 2nd stp.