如何配置 JBoss 以在 Eclipse 中调试应用程序?
最佳答案
你的意思是 remote debug JBoss来自 Eclipse ?
来自 Configuring Eclipse for Remote Debugging :
Set the JAVA_OPTS variable as follows:
set JAVA_OPTS= -Xdebug -Xnoagent
-Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n %JAVA_OPTS%
or:
JAVA_OPTS="-Xdebug -Xnoagent
-Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n $JAVA_OPTS"
在“调试”框架中,选择“远程 Java 应用程序”节点。
在 Connection Properties 中,将 localhost
指定为 Host,并将 Port 指定为在 JBoss 服务器的运行批处理脚本 8787
中指定的端口。
关于java - Eclipse 中的 JBoss 调试,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/516196/