Debugdebug.getstack
Debug

debug.getstack

Reads values from an active stack frame.

Related to sUNC documentation

This page follows the official sUNC reference.

Signature

Luau
function debug.getstack(level: number, index: number?): any | { any }

Returns

One indexed value, or all frame values when no index is supplied.