github.com/codingeasygo/util@v0.0.0-20231206062002-1ce2f004b7d9/xdebug/debug.go (about) 1 package xdebug 2 3 import "runtime" 4 5 func CallStack() string { 6 buf := make([]byte, 102400) 7 blen := runtime.Stack(buf, false) 8 return string(buf[0:blen]) 9 }