add debug spell

This PR simply adds the %debug spell from the upcoming quickdebug system