Saturday, 7 May 2016

How to enable debug in java application?

To enable debugging in java applications add the jvm arguments,

For Java versions < 5.0 use the following Xdebug and Xrunjdwp args,



 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


No comments:

Post a Comment