我在10.0.1.62:8080/xxx.上运行了一个web应用程序。我想通过IntelliJ IDEA远程调试。我设置了JAVA_OPTS = -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8000
在10.0.1.62机器(Ubuntu上的Tomcat7)上,当我点击远程调试按钮时,IDE提供了一条信息消息:
连接到目标VM,地址:“10.0.1.62:8000”,传输:“套接字”
比我在10.0.1.62:8080/xxx.上虽然我得到了这条成功的信息,但短点没有命中。我错过了什么?
发布于 2016-09-26 19:18:55
首先,通过引用以下问题和答案,再次检查您的设置:Remote Debugging in IntelliJ Tomcat
从你的提问来看,听起来你已经遵循了这些步骤。在过去,还有一些其他配置问题给我带来了远程tomcat调试的问题,我将分享这些问题,并希望它能有所帮助。

elif [ "$1" = "start" ] ; then JAVA_OPTS="$JAVA_OPTS -Xdebug -Xrunjdwp:transport=dt_socket,address=15019,suspend=n,server=y"修复此问题后,您可以成功地关闭Tomcat,然后使用./startup.sh进行调试。
Shutdown Tomcat, then verify it is no longer running. Remove the deployed war file and corresponding exploded version from your tomcat webapps directory. Remove the contents of the work and temp directories. Deploy and verify your recently build war file. Start Tomcat.为此创建一个脚本将节省时间。
我相信还有二十件事可能会出错。可以自由地添加想法。
https://stackoverflow.com/questions/39703392
复制相似问题