Roll emit.go into dbg.go (for easy bundling)