The debug library reaches inside a Luau closure: its upvalues, its constants, its child prototypes, and the live stack of a running thread. It is how tooling inspects a game’s own functions, and how you change their behavior without replacing them.
Most of these are reachable both as debug.<name> and as a plain global of the same name, so debug.getupvalues(f) and getupvalues(f) are the same call. The two exceptions are getregistry, which is only a table member, and the prototype hooking functions, which are only globals.

Athena’s table is its own

Athena does not add members to the engine’s shared debug table. It publishes its own table over the top, carrying the engine’s debug.info and debug.traceback through unchanged alongside the functions below. Adding a member to the real table would be detectable; shadowing it is not. The table is read-only once installed.

Prototypes and closures

A Luau function is a closure: a prototype (the compiled code) plus the upvalues it captured. Functions defined inside another function appear as that prototype’s children.

Constants

Upvalues

Stacks and frames

Prototype hooking

These are globals only; they are not members of the debug table.

Functions take a function or a level

Most of these accept either a function value or a numeric stack level, the same convention the standard debug library uses. Level 1 is the function that called you, 2 its caller, and so on.

C functions have no bytecode

Constants, prototypes and stack frames only exist for Luau closures. Ask for them on a C closure and you get an error rather than an empty result, because the honest answer is that the question does not apply. Test first with islclosure.

Aliases

debug.isvalidlevel is the same function as debug.validlevel, and both are also plain globals.