2.3 Start in debug mode

2.3.1 Linux

To start SpringSource dm Server in debug mode, run startup.sh passing in the -debug argument:

cd $SERVER_HOME
bin/startup.sh -debug
	

This will start the debug agent listening on port 8000 which is the default remote debug port used by Eclipse. To start in debug mode with a specific port number, pass this in as the value for the -debug argument:

cd $SERVER_HOME
bin/startup.sh -debug 8001
	

This will start the debug agent listening on port 8001. To start in debug mode and suspend the VM until a debugger attaches, pass in the -suspend argument along with the -debug argument:

cd $SERVER_HOME
bin/startup.sh -debug -suspend
	

This starts the debug agent, but prevents SpringSource dm Server from starting until a debugger attaches to the agent. This can be useful when trying to diagnose problems that occur during startup.

2.3.2 Microsoft Windows

To start SpringSource dm Server in debug mode, run startup.bat passing in the -debug argument:

cd %SERVER_HOME%
bin\startup.bat -debug
	

This will start the debug agent listening on port 8000 which is the default remote debug port used by Eclipse. To start in debug mode with a specific port number, pass this in as the value for the -debug argument:

cd %SERVER_HOME%
bin\startup.bat -debug 8001
	

This will start the debug agent listening on port 8001. To start in debug mode and suspend the VM until a debugger attaches, pass in the -suspend argument along with the -debug argument:

cd %SERVER_HOME%
bin\startup.bat -debug -suspend
	

This starts the debug agent, but prevents SpringSource dm Server from starting until a debugger attaches to the agent. This can be useful when trying to diagnose problems that occur during startup.