To start GridGain in debug mode, add additional JVM option
-DGRIDGAIN_DEBUG_ENABLED=true
in GridGain launch script and uncomment the following section in GRIDGAIN_HOME/config/default-log4j.xml file:
<category name="org.gridgain">
<level value="DEBUG"/>
</category>