By callback I meant something that the engine calls like init(), this is running from the main.script, see below for code and output. Also, at a breakpoint in init() the debugger Call Stack shows “Unknown” for the init() and the correct name for someFunction(), this may be related.
function init(self)
pprint(debug.getinfo(1))
someFunction()
end
function someFunction()
pprint(debug.getinfo(1))
end
Ah, I see. Yeah, those lifecycle functions are treated a bit differently. I’m not sure if we’ll be able to get the function name back in that case. You’ll at least still get line number and source.