debug

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const IsDebug = false

Variables

This section is empty.

Functions

func FrameLogf

func FrameLogf(format string, args ...any)

Types

type CallerType

type CallerType int
const (
	CallerTypeNone CallerType = iota
	CallerTypeRegular
	CallerTypeInternal
)

func FirstCaller

func FirstCaller() (file string, line int, callerType CallerType)

FirstCaller returns the file and line number of the first caller outside of Ebitengine.

type FrameLogger

type FrameLogger interface {
	FrameLogf(format string, args ...any)
	Flush()
}

FrameLogger defines the interface for logging debug information for each frame.

func SwitchFrameLogger

func SwitchFrameLogger() FrameLogger

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳