backupRoswaal has moved to roswaal.app. These pages are a backup copy.Go to roswaal.app

TracebackLuau✎

The call stack as a string, for logging a path to here without stopping.

Pending review

TracebackstringMessage1Level
  • the language itself, so it works in Roblox and in Lune
  • pure — no execution pins, wire it anywhere
  • names its result — Result name in the Inspector is the local it binds, and a Declare Local reading that result makes a second one: see Variables and locals

Inputs

  • Message:string= ""
  • Level:number= 1

Outputs

  • result:string

What it compiles to

luau
print(debug.traceback("", 1))

Not reviewed yet