Wednesday, December 31, 2008

Resin 3.1.x -- Could not debug with resin 3.1.2

After migrating resin from 3.0.23 to 3.1.2, the setting for debug is no longer works.

Here is what we found:

Before 3.0.23, we passed debug setting to command line for resin start script:
-Xdebug -Xnoagent -J-Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n

Then in Eclipse, goto Run->Open Debug Dialog-->Remote Application.
Click new and make sure the project is set to the application you want to debug. Connection type should be "Standard (Socket Attach)", and your connection host should be "localhost" with the port "8787".


After 3.1.x, resin change the approach to take Java argument inside resin.conf
So for debug after 3.1.x, do this in resin.conf

-Xdebug
-Xnoagent
-Djava.compiler=NONE
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8787

No comments:

Post a Comment