-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A var_dump library #6
Comments
What types do you need to be dumped ? If it all about strings, tables, and numbers, i can work on one. |
Nope, not serialize. Like the PHP's var_dump does, for debugging. We should probably have some parameters to limit the amount of information printed. Like name of methods or not (I think this is possible?). |
Okay, I get it. |
I'm not that good with Lua yet. What are other types? Isn't everything except strings and numbers, tables? Something like this perhaps (for tables) -- these could be the defaults
var_dump(a_table, { depth = -1, methods = false, variables = true }) -- -1 = infinity |
Lua has 8 primitive types. See LuaTypes |
Well actually, I don't think parameters are of much use. |
Here are some similar methods (And I think all of them also support serializing back). |
I've always used print_r from that page, worked liked charm |
There are several floating around on the internet.
Has anyone tried any? I don't remember which, but I tried 3 and only 1 worked, rest crashed the player on some objects.
Any recommendations?
The text was updated successfully, but these errors were encountered: