使用Eclipse远程调试Tomcat [英] Remote debugging Tomcat with Eclipse
本文介绍了使用Eclipse远程调试Tomcat的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我似乎没有通过Eclipse调试tomcat应用程序。我设置了
I can't seem to debug the tomcat application through Eclipse. I've set
CATALINA_OPTS = -Xdebug -Xrunjdwp:transport = dt_socket,address = 8000,server = y,suspend = n
然后我运行 bin / catalina.sh
,我看到输出说它在听 dt_socket
on port 8000
。但是每当我尝试连接到Eclipse中的端口 8000
(通过在远程java应用程序菜单中添加一个条目),它会抱怨一个拒绝的连接。任何想法?
and then I run bin/catalina.sh
, where I see output saying it's listening for dt_socket
on port 8000
. But whenever I try to connect to port 8000
in Eclipse (by adding an entry in the remote java application menu), it complains about a refused connect. Any ideas?
推荐答案
你可以检查这是否有效?
Can you check if this works?
JPDA_OPTS="-agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=n"
catalina.sh jpda start
这篇关于使用Eclipse远程调试Tomcat的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文