在配置文件resin/conf/resin.properties的jvm_args属性中,增加:
-Xdebug -Xrunjdwp:transport=dt_socket,address=9081,server=y,suspend=n -Dcom.sun.management.jmxremote -Xloggc:/data/logs/resin_gc.log
2. 调整idea在Edit Configurations中,创建remote类型的服务,然后指定host和port以及对用的项目源代码:
3. 调试
启动resin
idea以debug模式启动刚才创建的远程服务
访问远程服务接口,即可进入已加断点