Hot Code Replacement/Hot Code Reload in Debugging

Is there any good way to recompile and start the program without recompiling after modifying the code in debug?

like java hot code replace.
Recompiling and launching is too time consuming and a nightmare!

Not at the moment no. The program needs to be recompiled when you make changes, so there’s no way around that. Your best bet currently would be to use something like nodemon - npm to recompile/restart the program on changes. E.g.

nodemon --exec crystal run --watch src src/foo.cr

EDIT: Could try out Crystal's interpreter – A very special holiday present - The Crystal Programming Language, as that should make the feedback loop a bit shorter, but it’s still fairly experimental.

I use GitHub - samueleaton/sentry: Build/Runs your crystal application, watches files, and rebuilds/restarts app on file changes, not too bad anyway. a little kemal web project, less than 5 seconds after save changes.

That’s very helpful, this is what I want, the interpreter is really too efficient in the debugging phase, and developing programs without it is a nightmare