远程调试

远程debug首先需要在容器里开启配置

在${JBOSS_HOME}/bin/standalone.conf中找到

# Sample JPDA settings for remote socket debugging
#JAVA_OPTS="$JAVA_OPTS -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n"

将注释放开

然后需要保证eclipse里的代码和容器里的.class一致,点击run->debug configurations

远程调试_第1张图片

选择Remote Java Application

然后选择要调试的工程,输入IP和端口,点击debug即可

你可能感兴趣的:(远程调试)