Keep the session moving
What to expect when you save, and when to reload, restart or pair again.
In bytecode mode every save updates the phone by itself. You do not press anything. In kernel mode you reload yourself.
#Keys in the terminal
Type a key and press Enter while the terminal is focused.
| Key | What it does |
|---|---|
r | Hot reload (kernel mode). |
R | Restart the app from its first screen (kernel mode). |
p | Print a new QR code and end the old one. |
y or n | Allow or refuse a phone that asks to connect with a typed address. |
#Errors
When your code does not compile or throws, the error shows on the phone with the file and line. Tap a line to open it in your editor. The same message prints in your terminal, with keys, tokens and passwords hidden.
#When the computer goes away
If the connection drops, the runner keeps your app running with its last build and shows that it is offline. It reconnects when the server is back. After the QR code expires or the server restarts, scan a fresh one.
#Find out why a phone disconnects
$ zapbird start --verboseVerbose prints every request the phone makes, with its status and time.
#Stop
- Press
Ctrl+Cin the terminal. The server and the file watcher stop.