Can't write debug output until HTML headers are sent.