2011年7月21日 星期四

使用Eclipse做Remote Debug

######################
# In Windows Machine #
######################
# find jpda port in {TOMCAT_HOME}/bin/catalina.bat Find line 「set DEBUG_OPTS=」, if this isnt configured, we have to set this configuration.
set DEBUG_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,address=8081,server=y,suspend=n
#restart tomcat

#####################
# In Linux Machine  #
#####################
# go to {TOMCAT_HOME}/bin/catalina.sh and find follow configuration and take this port
JPDA_ADDRESS="8000"
#restart tomcat and use this command "./catalina.sh jpda start"

沒有留言:

張貼留言