Lua.VM.Stdlib.Debug (Lua v1.0.0-rc.2)

View Source

Lua 5.3 debug standard library.

Provides introspection and debugging facilities. Many functions are stubs that return plausible values since full debug support is not needed for most embedded use cases.

Functions

  • debug.getinfo(f [, what]) - Returns info about a function
  • debug.traceback([message [, level]]) - Returns a traceback string
  • debug.getmetatable(obj) - Returns metatable bypassing __metatable
  • debug.setmetatable(obj, mt) - Sets metatable bypassing __metatable
  • debug.getlocal(level, local) - Stub returning nil
  • debug.setlocal(level, local, value) - Stub returning nil
  • debug.sethook([hook, mask [, count]]) - Stub no-op
  • debug.gethook([thread]) - Stub returning nil
  • debug.getupvalue(f, up) - Returns the name and value of an upvalue
  • debug.setupvalue(f, up, value) - Sets an upvalue, returning its name
  • debug.upvalueid(f, n) - Stub returning nil