Documentation
hotfpc is hot reloading for Free Pascal. Run your program under hotfpc, edit a unit and save, and the running program carries on with the new code and everything it had. When an edit changes something the running program depends on, hotfpc says which declaration is in the way and starts the program over.
New to it? The introduction explains what happens to your program, and the quick start has you watching a program change in a few minutes.
Guides
- Introduction: what hot reloading is, swaps and restarts, and the agent hotfpc puts into your program.
- Quick start: install fpc and hotfpc, run the demo, make four edits.
- What a save does: what a swap keeps, which edits need a restart, and what a restart does.
- Your own program: fpc options, the compiler and ppudump, the files hotfpc watches, and how to lay out code you want to change.
- Edits and what they do: every kind of edit hotfpc is tested with, and its outcome.
- With lwpt: a run task that starts your package under hotfpc.
- With raylib: a game to tune while it runs.
- Windows programs:
hotfpc.exeon Windows, and Windows programs under Wine. - Troubleshooting: what hotfpc's messages mean and what to do.
Reference
- Command line: every option, what hotfpc passes to fpc, exit codes,
the
.hot/directory. - Output: every
[hot]line. - Environment variables: the
HOT_*variables. - Platforms: where hotfpc runs, how to get it, and what was tested with which compiler.
- Limits: what hotfpc doesn't do, and why.
Contributing
How hotfpc itself works and is built: how it works, build system, code style, tooling, testing, releasing and recording the demos. The workflow for a change is in CONTRIBUTING.md.