promotional bannermobile promotional banner
premium banner
LibPrettyPrint is a lightweight utility library for readable, safe table inspection and debugging in World of Warcraft.

Description

LibPrettyPrint

Because staring at raw Lua tables shouldn’t hurt in World of Warcraft.

Who is this for?

Intended for addon developers who want safer, more readable debug output during development.

Description

LibPrettyPrint is a lightweight utility library for readable, safe table inspection and debugging in World of Warcraft. It pretty-prints Lua values with configurable depth limits, key sorting, and flexible formatting, safely handles cyclic tables, and is designed for development and debugging use without impacting runtime performance.

Based on jagt/pprint.lua, which is itself a reimplementation of inspect.lua. Adapted and extended for World of Warcraft.

Quick Start Guide - Usage & Examples

Interface Definition File

Defines the public API and type annotations.

Example

--- @type LibPrettyPrint_Printer
local p = LibPrettyPrint:Printer({
  prefix = "MyAddOn",
})

p("Entering...")
-- Output:
-- [Timestamp] {{MyAddOn}}: Entering

See Github Project For Usage

License

The Unlicense

[1]: https://github.com/jagt/pprint.lua [2]: https://github.com/kikito/inspect.lua [3]: https://unlicense.org

Donations

As a software engineer, I am passionate about this project and have dedicated a significant amount of time and effort to creating a high-quality product. If you enjoy using this World of Warcraft add-on, please consider supporting me through a donation via Paypal™ or the Bitcoin Address provided below. Your support is greatly appreciated. Thank you in advance for your generosity.