Skip to content

Commit 5d5f0cb

Browse files
committed
debugging help
1 parent 95c6e7a commit 5d5f0cb

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
@@ -105,7 +105,9 @@ func (si StackInfo) canPrint(s string, anchorLine, i int) (ok bool) {
105105
// runtime.Stack and processed to proper format to be shown in test output by
106106
// starting from stackLevel.
107107
func PrintStackForTest(w io.Writer, stackLevel int) {
108-
stackBuf := bytes.NewBuffer(debug.Stack())
108+
stack := debug.Stack()
109+
//println(string(stack))
110+
stackBuf := bytes.NewBuffer(stack)
109111
printStackForTest(stackBuf, w, stackLevel)
110112
}
111113

0 commit comments

Comments
 (0)