MCPcopy Index your code
hub / github.com/cockroachdb/errors / PrintStackTrace

Function PrintStackTrace

report/reportables.go:30–37  ·  view source on GitHub ↗

PrintStackTrace produces a human-readable partial representation of the stack trace.

(s *StackTrace)

Source from the content-addressed store, hash-verified

28// PrintStackTrace produces a human-readable partial representation of
29// the stack trace.
30func PrintStackTrace(s *StackTrace) string {
31 var buf bytes.Buffer
32 for i := len(s.Frames) - 1; i >= 0; i-- {
33 f := s.Frames[i]
34 fmt.Fprintf(&buf, "%s:%d: in %s()\n", f.Filename, f.Lineno, f.Function)
35 }
36 return buf.String()
37}

Callers

nothing calls this directly

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…