Flesh out debug module.
Restore 100% test coverage to generator stuff.