code: public synchronized void setDebug(boolean debug)
      {
          boolean oldDebug=_debugOn;
          if (_debugOn && !debug)
              this.message(DEBUG,"DEBUG OFF");
          _debugOn=debug;
          if (!oldDebug && debug)
              this.message(DEBUG,"DEBUG ON");
      }
docs: Set if debugging is on or off.
  @param debug