summaryrefslogtreecommitdiff
path: root/server/locale/en-US/libs/lua/debug.lni
blob: 32d1da6876cd49546691bc11d3f643c4feba6f69 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
["debug.debug"]
description = 'Enters an interactive mode with the user, running each string that the user enters.'

[gethook]
description = 'Returns the current hook settings of the thread.'

[getinfo]
description = 'Returns a table with information about a function.'
[[.enums]]
name = 'what'
enum = 'n'
description = '`name` and `namewhat`'
``````````
name = 'what'
enum = 'S'
description = '`source`, `short_src`, `linedefined`, `lastlinedefined`, and `what`'
``````````
name = 'what'
enum = 'l'
description = '`currentline`'
``````````
name = 'what'
enum = 't'
description = '`istailcall`'
``````````
name = 'what'
enum = 'u'
description = '`nups`, `nparams`, and `isvararg`'
``````````
name = 'what'
enum = 'f'
description = '`func`'
``````````
name = 'what'
enum = 'L'
description = '`activelines`'

[getlocal]
description = 'Returns the name and the value of the local variable with index `local` of the function at level `f` of the stack.'

[getmetatable]
description = 'Returns the metatable of the given value.'

[getregistry]
description = 'Returns the registry table.'

[getupvalue]
description = 'Returns the name and the value of the upvalue with index `up` of the function.'

[getuservalue]
description = 'Returns the Lua value associated to u.'

["getuservalue Lua 5.4"]
description = [[
Returns the `n`-th user value associated
to the userdata `u` plus a boolean,
`false` if the userdata does not have that value.
]]

[sethook]
description = 'Sets the given function as a hook.'
[[.enums]]
name = 'mask'
enum = 'c'
description = 'Calls hook when Lua calls a function.'
``````````
name = 'mask'
enum = 'r'
description = 'Calls hook when Lua returns from a function.'
``````````
name = 'mask'
enum = 'l'
description = 'Calls hook when Lua enters a new line of code.'

[setlocal]
description = 'Assigns the `value` to the local variable with index `local` of the function at `level` of the stack.'

[setmetatable]
description = 'Sets the metatable for the given value to the given table (which can be nil).'

[setupvalue]
description = 'Assigns the `value` to the upvalue with index `up` of the function.'

[setuservalue]
description = 'Sets the given value as the Lua value associated to the given udata.'

["setuservalue Lua 5.4"]
description = [[
Sets the given `value` as
the `n`-th user value associated to the given `udata`.
`udata` must be a full userdata.
]]

[traceback]
description = 'Returns a string with a traceback of the call stack. The optional message string is appended at the beginning of the traceback.'

[upvalueid]
description = 'Returns a unique identifier (as a light userdata) for the upvalue numbered `n` from the given function.'

[upvaluejoin]
description = 'Make the `n1`-th upvalue of the Lua closure `f1` refer to the `n2`-th upvalue of the Lua closure `f2`.'