debug

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2024 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

Package debug contains utilities to log debug messages and display panics nicely.

Index

Constants

View Source
const Oops = `` /* 193-byte string literal not displayed */

Variables

View Source
var DeadlockDetection bool
View Source
var LogDirectory = GetUserDebugDir()
View Source
var OnRecover func()
View Source
var RecoverPrettyPanic bool = true
View Source
var WriteLogs bool

Functions

func GetUserDebugDir added in v0.3.1

func GetUserDebugDir() string

func Initialize

func Initialize()

func PrettyPanic

func PrettyPanic(panic interface{})

func Print

func Print(text ...interface{})

func PrintStack

func PrintStack()

func Printf

func Printf(text string, args ...interface{})

func Recover

func Recover()

Recover recovers a panic, runs the OnRecover handler and either re-panics or shows an user-friendly message about the panic depending on whether or not the pretty panic mode is enabled.

Types

This section is empty.

Jump to

Keyboard shortcuts

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