Is it possible to enable debugging for a Java process after it starts without debugging

Possible duplicate:
Debug Java application without starting JVM with debug arguments

For example, is it possible to enable debug mode in the JVM by code?

+5
source share
1 answer

The answer is no - if the JVM was not started using the debug option, you cannot connect to the debug port.

Special profiler JVM types may exist that allow this, but this is not possible with any of the standard JMVs — for obvious security reasons.

+5
source

All Articles