zstdzgo.at/zstd/zdebug Index | Files

package zdebug

import "zgo.at/zstd/zdebug"

Package zdebug implements functions useful when debugging programs.

Index

Functions

func Loc

func Loc(n int) string

Loc gets a location in the stack trace.

Use 0 for the current location; 1 for one up, etc.

func PrintStack

func PrintStack(filterFun ...string)

PrintStack prints a stack trace to stderr.

Unlike debug.PrintStack() the output is much more concise: every frame is a single line with the package/function name and file location printed in aligned columns.

func Stack

func Stack(filterFun ...string) []byte

Stack gets a stack trace.

Unlike debug.Stack() the output is much more concise: every frame is a single line with the package/function name and file location printed in aligned columns.

Source Files

zdebug.go

Version
v0.0.0-20241125224656-49fafbb06ca9 (latest)
Published
Nov 25, 2024
Platform
linux/amd64
Imports
7 packages
Last checked
3 days ago

Tools for package owners.