Debug « jmx « Java Enterprise Q&A

1. Enable/disable debugger support for the currently running JVM from Java code

Is there an interface (maybe part of JMX) that I can use to dynamically enable or disable the JVM debugger support from Java code inside that JVM? (See also —CRM) ...

2. Directing IntelliJ to sources when debugging an external application

Say you have the source of an application, and you're debugging the jar via JMX. How do you tell IntelliJ where the source is?

3. Debugging JConsole Connection Failed

Good day, I have a web application deployed to a remote resin server, and it has JMX turned on. I can telnet to the remote server i.e

franz@see:/tmp$ telnet <remote-ip> 5555
Trying <remote-ip>...
Connected to <remote-ip>.
Escape ...