5

Possible Duplicate:
Debug a java application without starting the JVM with debug arguments

For example, can the debug mode be enabled in JVM itself by code?

Community
  • 1
  • 1
Kaneg
  • 511
  • 3
  • 9

1 Answers1

5

The answer is no - if the JVM was not started with the debug option you can't connect to its debug port.

There may be special profiler type JVMs that allow it, but it's not possible with any of the standard JMVs - for obvious security reasons.

Bohemian
  • 412,405
  • 93
  • 575
  • 722