AcediaDocumentation

debug.setname

Updates the debug name of a Lua prototype.

An empty name performs no write. Other closures sharing the prototype may observe the name change.

debug.setname(subject: function | number, name: string): ()

Parameters

ParameterTypeDescription
subjectfunction | numberLua function or reachable stack level. C functions are rejected by prototype readers.
namestringNew name.

On this page