promotional bannermobile promotional banner

LibPrettyPrint

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

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

If LibPrettyPrint has made your gameplay or addon development easier, consider supporting its development:

About

LibPrettyPrint Team

profile avatar
  • 1
    Followers
  • 19
    Projects
  • 560.7K
    Downloads
Donate

More from kapresoftView all