// DebugScript is the same as RunScript except it launches with node-inspector
430158
func (c *Client) DebugScript(script string) *exec.Cmd {
	scriptPath := filepath.Join(c.RootPath, "debug.js")
	if err := ioutil.WriteFile(scriptPath, []byte(script), 0644); err != nil {
		panic(err)
	}
	path := filepath.Join(c.RootPath, "node_modules", ".bin", "node-debug")
	if _, err := exec.LookPath(path); err != nil {
		fmt.Print("Installing node-inspector... ")
		c.InstallPackage("node-inspector")
		fmt.Println("done")
	}
	cmd := exec.Command(path, "debug.js")
	cmd.Dir = c.RootPath
	return cmd
}
632484
func (s *SyslogLogger) Debug(v ...interface{}) {
	s.w.Debug(fmt.Sprint(v...))
}
377939
func (c *Client) SetDebug(debug bool) {
	c.m.Lock()
	defer c.m.Unlock()

	c.Debug = debug
}
681898
func IsDebug(ctx context.Context) bool {
	bv, ok := ctx.Value(ctxKeyDebug).(bool)
	if !ok {
		return false
	}
	return bv
}
802877
func (b *simple) Debug(msg ...interface{}) {
	stdlog.Printf("[DEBUG] %s %s", fmt.Sprint(msg...), pretty(b.fields))
}
200222
func (l *dglog) Debugf(format string, v ...interface{}) {
	if l.runLevel == common.RUN_DEBUG {
		logDataChan <- fmt.Sprintf(common.RUN_DEBUG_FORMAT+format, v...)
	}
}
1371618
func (entry *Entry) Debug(args ...interface{}) {
	if logger.Level >= logrus.DebugLevel {
		entry.Entry.Debug(args...)
	}
}
1116706
func Debug(ctx context.Context, format string, args ...interface{}) {
	if !ctxutil.IsDebug(ctx) {
		return
	}

	var loc string
	if _, file, line, ok := runtime.Caller(1); ok {
		file = file[strings.Index(file, "pkg/"):]
		file = strings.TrimPrefix(file, "pkg/")
		loc = fmt.Sprintf("%s:%d ", file, line)
	}

	fmt.Fprintf(Stdout, Prefix(ctx)+"[DEBUG] "+loc+format+newline(ctx), args...)
}
983936
func (e *Errors) Debug(format string, a ...interface{}) error {
	return e.add(Debug, format, a...)
}
1247389
func (r *Runtime) SetDebug(debug bool) {
	r.Debug = debug
	middleware.Debug = debug
}
787630
func (that *JSONNode) DebugProspect(indentlevel int, indentchar string) {
	switch that.t {
	case TypeValue:
		that.debugProspectValue(indentlevel, indentchar)
	case TypeMap:
		that.debugProspectMap(indentlevel, indentchar)
	case TypeArray:
		that.debugProspectArray(indentlevel, indentchar)
	case TypeUndefined:
		printfindent(indentlevel, indentchar, "Is of Type: TypeUndefined\n")
	}
}
1143292
func (c *Client) debug(f string, args ...interface{}) {
	if c.config.Logger == nil {
		return
	}

	fmt.Fprintf(c.config.Logger, "goftp: %.3f %s\n",
		time.Now().Sub(c.t0).Seconds(),
		fmt.Sprintf(f, args...),
	)
}
991731
func (l Levels) Debug() log.Logger {
	return log.WithPrefix(l.logger, l.levelKey, l.debugValue)
}
530119
func (log *impl) Debug(msg string) {
	log.w.logAtLevel(syslog.LOG_DEBUG, msg)
}
1036560
func Debug(format string, values ...interface{}) {
	if lvl() <= DebugLevel {
		logger.Logf("[DEBUG]    "+format, values...)
	}
}
338181
func Debug(ctx context.Context, msg string, logCtx ...interface{}) {
	FromContext(ctx).Debug(msg, logCtx...)
}
1285063
func (l *Logger) Debug(message string, props Properties) {
	l.log(Debug, message, props)
}