// Toggles the debug state.
// If debug is true, sets it to false.
// If debug is false, sets it to true.
481283
func (l *DebugLogger) Toggle() {
	l.mx.Lock()
	defer l.mx.Unlock()
	if l.debug == false {
		l.debug = true
	} else {
		l.debug = false
	}
	l.updateLogFlags()
}
523910
func (dl *DefaultLogger) Debug(message string, params ...interface{}) {
	dl.logger.Debugf(message, params...)
}
368358
func (l *Logger) Debug(msg string, v ...interface{}) {
	if l.debug {
		fmt.Fprint(l.stderr, addColor(DebugPrefix+" ", Cyan))
		l.Msg(msg, v...)
	}
}
26045
func (session *Session) Debug() DebugMode {
	if session.debug != DEBUG_OFF {
		return session.debug
	}

	return Debug
}
47679
func (l *Logger) Debug(args ...interface{}) {
	kitlevel.Debug(l.Log).Log(args...)
}
1362557
func (f *FST) Debug(callback func(int, interface{}) error) error {

	addr := f.decoder.getRoot()
	set := bitset.New(uint(addr))
	stack := addrStack{addr}

	stateNumber := 0
	stack, addr = stack[:len(stack)-1], stack[len(stack)-1]
	for addr != noneAddr {
		if set.Test(uint(addr)) {
			stack, addr = stack.Pop()
			continue
		}
		set.Set(uint(addr))
		state, err := f.decoder.stateAt(addr, nil)
		if err != nil {
			return err
		}
		err = callback(stateNumber, state)
		if err != nil {
			return err
		}
		for i := 0; i < state.NumTransitions(); i++ {
			tchar := state.TransitionAt(i)
			_, dest, _ := state.TransitionFor(tchar)
			stack = append(stack, dest)
		}
		stateNumber++
		stack, addr = stack.Pop()
	}

	return nil
}
961467
func (e *Entry) Debug(msg string) {
	e.Logger.log(DebugLevel, e, msg)
}
322799
func (dl *ConsoleLogger) Debug(message interface{}, params ...interface{}) {
	dl.logger.Debugf(fmt.Sprintf("%s %s", caller(), fmt.Sprint(message)), params...)
}
1140055
func Debug(v ...interface{}) {
	if Severity >= LevelDebug {
		std.Output(5, fmt.Sprint(v...), LevelDebug)
	}
}
1371618
func (entry *Entry) Debug(args ...interface{}) {
	if logger.Level >= logrus.DebugLevel {
		entry.Entry.Debug(args...)
	}
}
236588
func (s *SimpleLogger) Debug(v ...interface{}) {
	if s.level <= core.LOG_DEBUG {
		s.DEBUG.Output(2, fmt.Sprint(v...))
	}
	return
}
796970
func (l *Logger) Debug(args ...interface{}) {
	l.logf(l.app, logLevelDebug, "", true, args...)
}
892831
func (l *logger) SetDebug(facility string, enabled bool) {
	l.mut.Lock()
	defer l.mut.Unlock()
	if _, ok := l.debug[facility]; enabled && !ok {
		l.SetFlags(DebugFlags)
		l.debug[facility] = struct{}{}
	} else if !enabled && ok {
		delete(l.debug, facility)
		if len(l.debug) == 0 {
			l.SetFlags(DefaultFlags)
		}
	}
}
529853
func (l *Logger) Debug(msg interface{}, data ...interface{}) {
	if l.shouldAppend(DEBUG) {
		l.makeLog(msg, DEBUG, data)
	}
}
311167
func (rc *RequestConfig) SetDebug(enable bool) *RequestConfig {
	rc.Debug = enable

	return rc
}
425472
func (d *Debugger) State(nowait bool) (*api.DebuggerState, error) {
	if d.isRunning() && nowait {
		return &api.DebuggerState{Running: true}, nil
	}

	d.processMutex.Lock()
	defer d.processMutex.Unlock()
	return d.state(nil)
}
806744
func (l *Logger) Debug(v ...interface{}) {
	if l.Level >= DebugLevel {
		l.Logger.Print(DebugLevel.String() + fmt.Sprint(v...))
	}
}