Hacker News new | ask | show | jobs
by magicalhippo 1967 days ago
I imagine it can be very useful if you want to debug and fix a problem in a contained area of the code where it can take a significant effort to get the program in a state which can trigger the bug, but once in that state it's easy to trigger repeatedly.

Say you have to load a lot of data, but once loaded you can trigger the issue by just hitting a button.

With hot code reloading you could incrementally add debugging code and try your fix, without having to restart the program and wait for the data to reload each time.