6

Possible Duplicate:
How do I disable Hot Code Replace in Eclipse

When you change Java code while in a debugging session, Eclipse will upload the updated class files into the running JVM (hot code replace). This even works for remote applications.

Is there a way to turn Hot Code Replace off (within Eclipse, not at the remote JVM)?

We want to be able to debug our test and staging servers remotely, but prevent unintentional updates to the builds that they are running.

Community
  • 1
  • 1
Thilo
  • 257,207
  • 101
  • 511
  • 656
  • This question was answered here: http://stackoverflow.com/questions/2594408/how-do-i-disable-hot-code-replace-in-eclipse – dube Dec 09 '12 at 13:15
  • The top answer on the linked duplicate is about how to disable the *warnings when replace fails*, not the actual replacement (and the question did ask that). I don't think this is properly a duplicate. http://stackoverflow.com/questions/7527613/disable-jvm-hot-swap is more closely related and arguably a duplicate of this. – Kevin Reid Apr 29 '15 at 21:59
  • Thanks for the question. I have just discovered that hotswap works even with remote debugging – ACV Jul 12 '18 at 13:24

1 Answers1

5

Here they say, that if HCR does not work, you may have 'automatic building' turned off.

So, maybe just switching off automatic building for debugging solves your problem.

Andreas Dolk
  • 113,398
  • 19
  • 180
  • 268