上网搜了一圈,有两个办法:
1:
2:
两种方法中,我比较喜欢后面一种,因为它的Log输出是在Eclipse中。
1:
引用
给httpd加上运行参数:-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=12345并运行
接着打开Debug dialog
右键点击Remote Java Application->New
Connection Properties:
Host:127.0.0.1
Port:12345
点Debug即可
接着打开Debug dialog
右键点击Remote Java Application->New
Connection Properties:
Host:127.0.0.1
Port:12345
点Debug即可
2:
引用
打开Debug dialog
右键点击Java Application->New
Main class:
com.caucho.server.resin.Resin
Program arguments:
-conf "X:/resinhome/conf/resin.conf"
VM arguments:
-Dresin.home="X:/resinhome"
-Djava.util.logging.manager=com.caucho.log.LogManagerImpl
Classpath:
Resin_Library
tools.jar
点Debug即可
右键点击Java Application->New
Main class:
com.caucho.server.resin.Resin
Program arguments:
-conf "X:/resinhome/conf/resin.conf"
VM arguments:
-Dresin.home="X:/resinhome"
-Djava.util.logging.manager=com.caucho.log.LogManagerImpl
Classpath:
Resin_Library
tools.jar
点Debug即可
两种方法中,我比较喜欢后面一种,因为它的Log输出是在Eclipse中。
本文提供了两种调试Resin服务器的方法。第一种方法通过为httpd添加特定参数,并使用远程调试连接进行调试。第二种方法涉及在Eclipse中设置调试配置,这种方法更受欢迎,因为它将日志输出直接显示在Eclipse中。

被折叠的 条评论
为什么被折叠?



