Currently we have as options for enabling debug (debug.sh/bat file)
DEBUG_OPTS="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,address=8000,suspend=n"
These are the old options for Java 1.4, even older. For Java 1.6, we have instead:
DEBUG_OPTS="-agentlib:jdwp=transport=dt_socket,server=y,address=8000,suspend=n"
From documention of Oracle:
http://download.oracle.com/javase/6/docs/technotes/guides/jpda/conninv.html#Invocation
It should be correct some problems when we make Java code hot replacement.