Page 1 of 1

Variable dump for error checking

Posted: January 28th, 2014, 9:00 pm
by byronnash
I'm trying to build in some error reporting via a log file into one of my scripts. I'm catching the errors and writing them to a text file along with some periodic feedback items I've written in manually. Is there a way to sort of dump all the variables that have been defined up to the point of error? It would be handy to know what all is being used in the script at the point where it crashes. Very often the script gets used with faulty inputs on the client side. Being able to see those at a glance would really help in debugging problems.

Thanks!