At the moment there is possibility to run JVM with an agent:
-javaagent:somejar.jar
this way in order to run the Java agent I have wrote as an I have to put it into a jar. therefore it is limited in debugging. Is there a technique for debugging a Java agent in IDE while attaching it to a JVM?
premain
method never trigger. But in myClassFileTransformer
for example which is an inner class of my agent, the breakpoints do trigger. – Gobo