Aliases
setinfo
Arguments
function | number
required
The function to inspect, or a positive stack level identifying a caller.
string
required
The metadata field to change.
any
required
The new metadata field value.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Updates selected function/frame metadata.
debug.setinfo(target: function | number, field: string, value: any): ()
setinfolocal function sample() end
debug.setinfo(sample, "name", "DocsExample")
print(debug.getinfo(sample).name)
