Enumerate self?

Is there any way to get a list of the variables (and their values) on the self object?

Besides being a pain to manually query all of the specific variable(s) you want to see (much less the inconvenience of not having them side by side), sometimes you need to access a variable you haven’t used in a while (or see if it has been set), and you don’t want to take half an hour digging through your code to remember what exactly you called it.

This is not supported, but there is a feature request here: https://github.com/defold/defold/issues/3444

1 Like