Documentation ¶
Overview ¶
Package debug contains facilities for programs to debug themselves while they are running.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CallerWithFilter ¶
CallerPathWithFilter returns the absolute file path along with its line number of the caller.
The parameter <filter> is used to filter the path of the caller.
func PrintStack ¶
func PrintStack(skip ...int)
PrintStack prints to standard error the stack trace returned by runtime.Stack.
func Stack ¶
Stack returns a formatted stack trace of the goroutine that calls it. It calls runtime.Stack with a large enough buffer to capture the entire trace.
func StackWithFilter ¶
StackWithFilter returns a formatted stack trace of the goroutine that calls it. It calls runtime.Stack with a large enough buffer to capture the entire trace.
The parameter <filter> is used to filter the path of the caller.
Types ¶
This section is empty.