Debug always is written in debug mode

Fixes #153.  Last issue before v0.4