You can start ServiceMix 4.x in debug mode on port 5005, by setting environment variable SERVICEMIX_DEBUG; then you can attach the eclipse debugger.
For more details see: remote-debugging-servicemix-in-eclipse
Edited by: plowry on Jun 18, 2009 12:27 PM
In ServiceMix 4.4, instead of SERVICEMIX_DEBUG option i could see KARAF_DEBUG option in servicemix.bat. Setting that to true enabled debug in my case.