wrap debug output with SDEBUG macro