随风飞世 发表于 2017-2-20 11:41:59

Eclipse无插件在Resin中调试程序

上网搜了一圈,有两个办法:

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即可


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即可


两种方法中,我比较喜欢后面一种,因为它的Log输出是在Eclipse中。
页: [1]
查看完整版本: Eclipse无插件在Resin中调试程序