For production usage, maybe that wouldn't be considered safe, but there are companies that provide services with this purpose (e.g. JRebel).
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.