package luaAvailable on lua
Enters an interactive mode with the user, running each string that the user enters. Using simple commands and other debug facilities, the user can inspect global and local variables, change their values, evaluate expressions, and so on. A line containing only the word
cont finishes this function, so that the caller continues its execution.
Note that commands for
Debug.debug are not lexically nested within any function, and so have no direct access to local variables.
Returns the current hook settings of the thread, as three values: the current hook function, the current hook mask, and the current hook count (as set by the
Returns a table with information about a function.
This function returns the name and the value of the local variable with index local of the function at level level of the stack.
static getmetatable (value:AnyTable):AnyTable
Returns the metatable of the given
null if it does not have a metatable.
static getregistry ():AnyTable
Returns the registry table.
static getupvalue (f:Function, up:Int):Dynamic
This function returns the name and the value of the upvalue with index
up of the function
f. The function returns
null if there is no upvalue with the given index.
static getuservalue (val:Dynamic):Dynamic
Returns the Lua value associated to
val is not a
Sets the given function as a hook. When called without arguments,
Debug.sethook turns off the hook.
This function assigns the value value to the local variable with index local of the function at level level of the stack. Call
getinfo to check whether the level is valid.
static setmetatable (value:AnyTable, table:AnyTable):Void
Sets the metatable for the given
value to the given
table (can be
static setupvalue (f:Function, up:Int, val:Dynamic):Void
This function assigns the value value to the upvalue with index up of the function
f. The function returns
null if there is no upvalue with the given index. Otherwise, it returns the name of the upvalue.
static setuservalue (udata:Dynamic, val:Dynamic):Void
Sets the given value as the Lua value associated to the given udata.
udata must be a full
Returns a string with a traceback of the call stack.
(optional) is appended at the beginning of the traceback.
(optional) tells at which level to start the traceback. default is
Returns a unique identifier (as a light userdata) for the upvalue numbered
n from the given function
n1-th upvalue of the Lua closure
f1 refer to the
n2-th upvalue of the Lua closure
© 2005–2016 Haxe Foundation
Licensed under a MIT license.