2.2 Start in debug mode

On a Linux Platform

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

cd $PLATFORM_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 $PLATFORM_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 $PLATFORM_HOME
bin/startup.sh -debug -suspend
	

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

On a Microsoft Windows Platform

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

cd %PLATFORM_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 %PLATFORM_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 %PLATFORM_HOME%
bin\startup.bat -debug -suspend
	

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