code: function getFunctionName(fn) {
    if (!fn) {
      return fn;
    }
    if (typeof fn === 'function') {
      if (fn.name) {
        return fn.name;
      }
      return (fn.toString().trim().match(/^function\s*([^\s(]+)/) || [])[1];
    } else if (fn.constructor && fn.constructor.name) {
      return fn.constructor.name;
    }
  }
docs: /*function debug(from, ns) {
  process._rawDebug('DEBUG: ' + util.inspect({
  from: from,
  currentUid: currentUid,
  context: ns ? ns._contexts.get(currentUid) : 'no ns'
  }, true, 2, true));
  }