Is there a way to list all variables in the global and in the current scope (at realtime execution)? I tried to simply loop over the variables in a recursive manner.
function recursion(variable_name){for (var property in variable_name){recursion(property)}}
I get the Error:
JavaScript: Too much recursion
Besides the error, this should usually list the global variables.
My goal is, to just store all variables and subvariables the JavaScript Interpreter encounters, and scan them for changes or absolut value in order to easily find the global or private variable name I was looking.