This question has been asked before for other languages: Python, PHP and JavaScript.
I would like to know if it is possible to do this in C. I am trying to get a snapshot of all the variables in my function at one point during the execution and then comparing that to another snapshot at a later point in time.
EDIT
A snapshot can be a list of all the variables in scope and their current value. I could code it by hand, but I would like to know if there is a faster way of doing things.