Subj : Re: Dump Globals To : echicken From : Mortifis Date : Sat Feb 16 2019 01:04 pm > Re: Dump Globals > By: Mortifis to All on Sat Feb 16 2019 11:26:39 > Mo> Is there a js function similar to php var_dump($GLOBALS); ? > Not that I'm aware of. It's easier and less verbose to target the variable > that you want rather than dumping the entire global space: > writeln(JSON.stringify(my_var)); > You could use this to dump the global scope of your script: > function scope_dump() { > Object.keys(js.scope).forEach(function (e) { > const exclude = [ > 'conio', > 'js', > 'stderr', > 'stdin', > 'stdout' > ]; > if (exclude.indexOf(e) > -1) return; > writeln(e + ':\r\n' + JSON.stringify(js.scope[e]) + '\r\n'); > }); > } perfect, thank you, one thing I am having trouble with is set_cookie(..., (time() - 1000, ...) I keep getting an error: cannot convert NaN to integer 2 wrongs don't make a right, but 3 left turns will get you back on the freeway! --- þ Synchronet þ AlleyCat! BBS - http://alleycat.synchro.net:81 .