THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Enable remote debugging in ServiceMix
In The following section in servicemix.bat
look for the following section is the one that matters:
Code Block |
---|
if "%SERVICEMIX_DEBUG%" == "" goto :SERVICEMIX_DEBUG_END
rem Use the defaults if JAVA_DEBUG_OPTS was not set
if "%JAVA_DEBUG_OPTS%" == "" set JAVA_DEBUG_OPTS=%DEFAULT_JAVA_DEBUG_OPTS%
set "JAVA_OPTS=%JAVA_DEBUG_OPTS% %JAVA_OPTS%"
call :warn Enabling Java debug options: %JAVA_DEBUG_OPTS%
:SERVICEMIX_DEBUG_END
|
In order to activate it, you need to set the environment variable SERVICEMIX_DEBUG
.
For instance in Windows:
Code Block |
---|
SET SERVICEMIX_DEBUG=TRUE
|
Or in Linux:
Code Block |
---|
export SERVICEMIX_DEBUG=TRUE
|
ServiceMix runs in debugging mode if you can see the following output when running it:... and comment out the first line (rem
).
Code Block |
---|
...
servicemix.bat: Enabling Java debug options: -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005
...
|
The debugging options can be modified in servicemix.bat
via the DEFAULT_JAVA_DEBUG_OPTS
. The default values are:
Code Block |
---|
set DEFAULT_JAVA_DEBUG_OPTS=-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005
|
Specifying a Remote Debugging Launch Configuration
...