Is there a programmatic way to turn on debugging in a running JVM instance? I am looking for an API that would make a running JVM, a debug server. The API would do the equivalent of
-Xdebug -Xrunjdwp:transport=dt_socket,address=<host:port>,server=y,suspend=n.