local function myFunc() return "hello"endlocal info = debug.getinfo(myFunc)print("Name:", info.name)print("Source:", info.short_src)print("Line defined:", info.linedefined)-- Get info for current functionlocal currentInfo = debug.getinfo(1)print("Current function:", currentInfo.name)