debug

package
v2.9.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 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 added in v2.8.0

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 added in v2.8.0

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

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

func SwitchFrameLogger added in v2.8.0

func SwitchFrameLogger() FrameLogger

Jump to

Keyboard shortcuts

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