debug

package
v0.0.0-...-f3d8a94 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 26, 2018 License: MIT Imports: 5 Imported by: 0

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 Callers

func Callers(n, max int) []byte

Callers returns the stack trace of the goroutine that called it, starting n entries above the caller of Callers, as a space-separated list of filename:line-number pairs with no new lines.

func PrintStack

func PrintStack()

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

func Stack

func Stack() []byte

Stack returns a formatted stack trace of the goroutine that calls it. For each routine, it includes the source line information and PC value, then attempts to discover, for Go functions, the calling function or method and the text of the line containing the invocation.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL