Skip to content

Commit 12db281

Browse files
committed
split FuncName to allow easy fast debugging
1 parent fb152fa commit 12db281

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

internal/debug/debug.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,9 @@ func FprintStack(w io.Writer, si StackInfo) {
159159
// frames we should go back (Level), and other fields tell how to find the
160160
// actual line where calculation should be started.
161161
func FuncName(si StackInfo) (n string, ln int, frame int, ok bool) {
162-
stackBuf := bytes.NewBuffer(debug.Stack())
162+
stack := debug.Stack()
163+
//println(string(stack))
164+
stackBuf := bytes.NewBuffer(stack)
163165
return funcName(stackBuf, si)
164166
}
165167

0 commit comments

Comments
 (0)