code: func SetDebug(debug bool) {
  	if raceDetector {
  		globalMutex.Lock()
  		defer globalMutex.Unlock()
  	}
  	globalDebug = debug
  }
docs: // Enable the delivery of debug messages to the logger.  Only meaningful
  // if a logger is also set.