if (original.console.debug) console.debug = function()
    {
      self.log(self.flatten(Array.prototype.slice.call(arguments).join(",")),"log-debug", true);
      original.console.debug.apply(this, arguments);
    }