How to see if fucntion started

i have this

local function addnewobject()

– stuff

end

timer.performWithDelay(500, addnewobject,0)

how do i detect if function was exacuted

Thanks

local function addnewobject() print("Function addnewobject() was called") -- stuff end timer.performWithDelay(500, addnewobject,0)

Tip: When posting code snippets use the <> button in the toolbar.

local function addnewobject() print("Function addnewobject() was called") -- stuff end timer.performWithDelay(500, addnewobject,0)

Tip: When posting code snippets use the <> button in the toolbar.