0

I want to use a custom class loader which supports hot-swapping (DCEVM). I've set up a remote debug configuration. To enable the classloader, I have to edit a command line, as described here: https://github.com/HotswapProjects/HotswapAgent

-XXaltjvm=dcevm -javaagent:PATH_TO_AGENT\hotswap-agent.jar

The problem is that the "command line arguments for running remote JVM" textbox in IntelliJ is read-only. Is it possible to somehow override the command line? I tried to inject those arguments in a "Port" textbox but it seems that it's validated...

I use IntelliJ 2017.1 Community Edition.

The question appeared in comments to Attach Intellij-IDEA debugger to a running java process, but remained unanswered.

Community
  • 1
  • 1
Lutosław
  • 606
  • 7
  • 24

1 Answers1

2

No, IntelliJ IDEA only suggests you the options that are needed to enable remote debugging. All the other options for your app should be added manually to the command line when JVM is started.

CrazyCoder
  • 389,263
  • 172
  • 990
  • 904
  • So, if hot swapping fails, it means that there is an error in a command line which I use to start tomcat. – Lutosław Mar 27 '17 at 10:48