1.修改resin
在配置檔案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模式啟動剛才建立的遠端服務
通路遠端服務接口,即可進入已加斷點