Skip to content

Instantly share code, notes, and snippets.

@raingloom
Created July 30, 2015 16:06
Show Gist options
  • Save raingloom/01bfd4040408100bec81 to your computer and use it in GitHub Desktop.
Save raingloom/01bfd4040408100bec81 to your computer and use it in GitHub Desktop.
---easily pluggable into any part of code for a quick insight
-- example: local x = math.sin ( 123 )
-- local x = debug.print ( math.sin ( 123 ) )
-- prints all passed arguments as strings and returns them as-is
function debug.print ( ... )
print ( ... )
return ...
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment