Skip to main content

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

  1. Watches all .mx files in src/
  2. On file change → rebuilds the VCON container
  3. If the change is compatiblehot patches the running VM
  4. If the change is structuralfull 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

Next Steps