Alzabo::Debug(3pm)

πŸ“¦
version 0.92 Β· 2 versions
  • 0.92 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 0.92 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

✨ Alzabo::Debug ✨

okay so bestie, this is Alzabo::Debug β€” it's the little module that makes the constants everyone else in Alzabo peeks at to figure out whether they should be yapping debug output or not 🫢

It lives in the User Contributed Perl Documentation section, and yes, it's a Perl thing. πŸ’…


🌸 SYNOPSIS 🌸

export ALZABO_DEBUG='SQL|TRACE'

... load and run code using Alzabo ...

export ALZABO_DEBUG=METHODMAKER

... load and run code using Alzabo ...

like. that's it. that's the whole vibe. set the env var, load your code, watch the chaos. πŸ¦‹


πŸ’– DESCRIPTION πŸ’–

This module creates constants used by other modules in order to determine what debugging output should be generated.

heads up bestie: the interface is currently experimental. so like. don't build your whole personality on it being stable, okay? 😭

πŸŽ€ USAGE πŸŽ€

Currently, the only way to turn on debugging is by setting the ALZABO_DEBUG environment variable. This variable can contain various flags, each separated by a pipe char (|). Each flag turns on different types of debugging output. 🌈

CRUCIAL: these flags must be set before Alzabo is loaded, because debugging gets turned on or off through the use of constants. so if you set it late, it's giving nothing. no cap. πŸ’€

The current flags are:

  • SQL β€” generated SQL and its associated bound variables. the receipts, literally. 🧾
  • TRACE β€” a stack trace will be generated any time SQL is generated. so you can see exactly who did this. πŸ”
  • METHODMAKER β€” the Alzabo::MethodMaker module will generate verbose output describing the methods it is creating. it's basically narrating its own glow-up. ✨
  • REVERSE_ENGINEER β€” the modules involved in reverse-engineering will generate output describing what it finds during reverse-engineering. detective mode activated. πŸ•΅οΈ
  • ALL β€” turn on all flags. every single one. main character energy, maximum chaos, slay. πŸ‘‘

For now, all debugging output is sent to STDERR.


so yeah, that's the whole page β€” short, sweet, and very "set it before you load it" coded. 🌸

This was the Alzabo::Debug(3pm) page from the User Contributed Perl Documentation, and the footer said it was generated by perl v5.34.0 on 2022-06-14. love that for us. bye bestie, go set your env vars πŸ’œπŸŽ€

πŸ“¦ where this page comes from