上网搜了一圈,有两个办法:
1:
[quote]给httpd加上运行参数:[color=red]-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=12345[/color]并运行
接着打开Debug dialog
右键点击Remote Java Application->New
Connection Properties:
Host:127.0.0.1
Port:12345
点Debug即可[/quote]
2:
[quote]打开Debug dialog
右键点击Java Application->New
Main class:
com.caucho.server.resin.Resin
Program arguments:
-conf "[color=red]X:\resinhome[/color]\conf\resin.conf"
VM arguments:
-Dresin.home="[color=red]X:\resinhome[/color]"
-Djava.util.logging.manager=com.caucho.log.LogManagerImpl
Classpath:
Resin_Library
tools.jar
点Debug即可[/quote]
两种方法中,我比较喜欢后面一种,因为它的Log输出是在Eclipse中。
1:
[quote]给httpd加上运行参数:[color=red]-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=12345[/color]并运行
接着打开Debug dialog
右键点击Remote Java Application->New
Connection Properties:
Host:127.0.0.1
Port:12345
点Debug即可[/quote]
2:
[quote]打开Debug dialog
右键点击Java Application->New
Main class:
com.caucho.server.resin.Resin
Program arguments:
-conf "[color=red]X:\resinhome[/color]\conf\resin.conf"
VM arguments:
-Dresin.home="[color=red]X:\resinhome[/color]"
-Djava.util.logging.manager=com.caucho.log.LogManagerImpl
Classpath:
Resin_Library
tools.jar
点Debug即可[/quote]
两种方法中,我比较喜欢后面一种,因为它的Log输出是在Eclipse中。
本文介绍了两种调试Resin服务器的方法。第一种方法是通过给httpd进程添加特定的运行参数来实现远程调试;第二种方法则是在Eclipse中配置调试对话框进行调试,这种方法的优点是可以直接在IDE中查看Log输出。

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



