I have a somewhat large program (about 7,000 lines of code). I like to put a comment near the start of the program for each variable describing the purpose of the variable. However, I must admit that there are times where I've gone on extended code writing sprees and neglected to note each variable as I went along.
So here's the question: Is there any kind of trick that I can use to simply print out a list of all the variable names in use in my program?