Hiya,
I just wondered, is there a way to print out a report of all variables that exist, at any given moment, and what their content is.
Is there a way to do this?
I can print specific variables that I explicitly know of, but I want to see if there are variables existing that shouldn’t.
Thanks
Angela
XeduR
December 3, 2019, 4:25pm
2
These sort of questions would be better asked from Google since the very first link yields an answer from Stack Overflow: https://stackoverflow.com/questions/2834579/print-all-local-variables-accessible-to-the-current-scope-in-lua
Hi,
Thanks… i didn’t know what term to do a search on.
But based on your post I also found this: https://docs.coronalabs.com/tutorial/basics/globals/index.html
It actually lists how to do so. My bad!
Thanks
Angela
rob
December 4, 2019, 12:36am
4
That tutorial shows you how to print the global variables. You however also want all of the local variables. XeduR’s Stack Overflow post has that covered.
Rob