To enable debugging in java applications add the jvm arguments,
For Java versions < 5.0 use the following Xdebug and Xrunjdwp args,
-Xdebug
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000
The above options will work in version greater than JDK 5.0 but not recommended and will not be faster since it will run in interpreted mode instead of JIT, which will be slower.
For latest version you can use the following and the above jvm arguments to enable debugging,
it is better to use the
-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8000
For Java versions < 5.0 use the following Xdebug and Xrunjdwp args,
-Xdebug
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000
The above options will work in version greater than JDK 5.0 but not recommended and will not be faster since it will run in interpreted mode instead of JIT, which will be slower.
For latest version you can use the following and the above jvm arguments to enable debugging,
it is better to use the
-agentlib:jdwp
single option-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8000
No comments:
Post a Comment