In my project I use sys.set_error_handler to catch lua error, but the traceback parameter is nil.
sys.set_error_handler(function(source, message, traceback)
print("gwjgwj,error,source=" .. tostring(source))
print("gwjgwj,error,message=" .. tostring(message))
print("gwjgwj,error,traceback=" .. tostring(traceback))
end)
I press F5 in defold editor in windows, when lua runtime error occured,the log in editor like this:
But it is right while I use project -> build