Add the `debug` mode and note timeout

Fixes #229