Skip to main content

open_debug

Function open_debug 

Source
pub fn open_debug(state: &mut LuaState) -> Result<usize, LuaError>
Expand description

Open the debug library and push the module table onto the stack. Returns 1 (the table).

The roster is version-gated: setcstacklimit is a 5.4-only addition (removed again in 5.5), and the 5.1 backend swaps the modern upvalue/ uservalue accessors for the fenv accessors getfenv/setfenv. Every delta is verified against that version’s reference binary.