MCPcopy
hub / github.com/gogf/gf / PrintStack

Function PrintStack

debug/gdebug/gdebug_stack.go:16–18  ·  view source on GitHub ↗

PrintStack prints to standard error the stack trace returned by runtime.Stack.

(skip ...int)

Source from the content-addressed store, hash-verified

14
15// PrintStack prints to standard error the stack trace returned by runtime.Stack.
16func PrintStack(skip ...int) {
17 fmt.Print(Stack(skip...))
18}
19
20// Stack returns a formatted stack trace of the goroutine that calls it.
21// It calls runtime.Stack with a large enough buffer to capture the entire trace.

Callers 1

Test_PrintStackFunction · 0.92

Calls 2

StackFunction · 0.70
PrintMethod · 0.65

Tested by 1

Test_PrintStackFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…