Disable Hot Code Replace for the Eclipse Java debugger [duplicate]
Asked Answered
P

1

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.

Postdate answered 23/7, 2009 at 6:40 Comment(3)
This question was answered here: #2594908Lonely
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. https://mcmap.net/q/1780370/-disable-jvm-hot-swap is more closely related and arguably a duplicate of this.Blanchblancha
Thanks for the question. I have just discovered that hotswap works even with remote debuggingDisband
S
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.

Schuller answered 23/7, 2009 at 8:29 Comment(1)
good point, that is a valid workaround.Postdate

© 2022 - 2024 — McMap. All rights reserved.