I'm trying to find a way to automate some exception logging code to add to the stack information already available.
Is there any way to use reflection to retrieve the values of all variables on the stack (locals and parameters) - I sincerely doubt the names of the variables are available, but in many cases it would be useful to see the values.