JAVA 远程debug
开启JVM的远程Debug模式, 在启动JVM的时候加上参数:
-Xnoagent
这一个选项在远程debug中一般不需要。其含义为Disables VM support for oldjdb。禁用旧的java debug。
下面是各个options的详解。摘自http://docs.oracle.com/javase/1.4.2/docs/tooldocs/windows/jdb.html
-XdebugEnables debugging support in the VM-Xrunjdwp:transport=dt_shmem,server=y,suspend=nLoads in-process debugging libraries and specifies the kind of connection to be made.-XnoagentDisables VM support for oldjdb-Djava.compiler=NONEDisables the JIT compiler. This is required for debugging under the classic VM