Watch & Hot Reload
The vcon watch command monitors source files and automatically rebuilds and hot-reloads the running program.
Usage
morph vcon watch
How It Works
- Watches all
.mxfiles insrc/ - On file change → rebuilds the VCON container
- If the change is compatible → hot patches the running VM
- If the change is structural → full restart
Compatible Changes (Hot Patchable)
- Method body edits
- Constant value changes
- Print statement changes
Structural Changes (Full Restart)
- Adding/removing classes or methods
- Changing method signatures
- Adding/removing fields
Enabling in Config
[vcon]
hot_reload = true