设定
Jboss
的启动参数,把Debug端口放开
打开[ \bin\run.conf]文件,把47行的注释放开
打开[ \bin\run.conf]文件,把47行的注释放开
即
# Sample JPDA settings for remote socket debugging
#JAVA_OPTS="$JAVA_OPTS -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n"
替换成
# Sample JPDA settings for remote socket debugging
JAVA_OPTS="$JAVA_OPTS -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=y"
然后在run.bat文件加入
set JAVA_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n %JAVA_OPTS%
之后 在eclipse的remote debug中 填入8787端口连上即可