Muleをデバッガで起動する
Mule(http://mule.codehaus.org/)をLinux上でデバッグモードで起動するには、conf/wrapper.conの以下の箇所を修正する(適宜折り返しあり)。
# uncomment this line to debug remotely, the application will wait for the external debugger to connect # IMPORTANT: change the wrapper.java.additional.parameter to be the actual consecutive number, # depending on the number of additional parameters above #wrapper.java.additional.4=-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005
1行だけコメントを外せばいいように見えるが、だまされるな。本当はこうだ(適宜折り返しあり)。
# uncomment this line to debug remotely, the application will wait for the external debugger to connect # IMPORTANT: change the wrapper.java.additional.parameter to be the actual consecutive number, # depending on the number of additional parameters above wrapper.java.additional.4=-Xdebug wrapper.java.additional.5=-Xnoagent wrapper.java.additional.6=-Djava.compiler=NONE wrapper.java.additional.7=-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005