debug

package
v0.3.19 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2026 License: MIT Imports: 0 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package debug is the lys family's compile-time trace facility. Call sites stay in the source at the points that matter (input routing, frame pacing, configure handshakes) but compile out of prod builds: the lysdebug build tag swaps in an enabled implementation, and with the tag off Log is an empty function, so the compiler eliminates every call and the evaluation of its arguments.

In a tagged build LYS_DEBUG selects categories at runtime: unset or "*" traces everything, a comma-separated list traces those categories, and a "-name" entry excludes one.

Index

Constants

View Source
const Enabled = false

Enabled is false without the lysdebug build tag.

Variables

This section is empty.

Functions

func Log

func Log(string, string, ...any)

Log is compiled out: an empty body the compiler inlines away, discarding every argument expression at the call site.

Types

This section is empty.

Jump to

Keyboard shortcuts

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