I've started to implement a simple Java agent that does some instrumentation before a class is loaded by JVM. The thing is I need to do some debugging on this agent, but what I tried so far had failed( I tried to remote debug the agent but it's not working)
I use IntelliJ and Maven( to generate the .jar agent).
So my question:Is there any trick to remote debug a simple java agent?