* first pass at adding debug support * Fixes #871. Switch to using a string literal for debug mode checks.