code: function(enable) {
              if (arguments.length == 1) {
                  isDebugging = enable;
                  if (isDebugging) {
                      this.log = log;
                      this.error = logError;
                      this.log('Debug:Enabled');
                  } else {
                      this.log('Debug:Disabled');
                      this.log = noop;
                      this.error = noop;
                  }
              }
  
              return isDebugging;
          }
docs: Gets/Sets whether or not Durandal is in debug mode.
  @method debug
  @param {boolean} [enable] Turns on/off debugging.
  @return {boolean} Whether or not Durandal is current debugging.