In this case, I'm not referring to looking at the code and checking which variables are temporary, I mean at runtime.

Are there any checks/procs which will determine if a var is a tmp var or not? I was rather frustrated to discover that my new awesome save system was suddenly saving variables that it was not supposed to save and I'd rather not have to rewrite the whole thing if there's a simple way to figure out which var is which.
In response to Popisfizzy
Thanks, you're my hero!