So basically, I want a text file that displays all the processes the program runs up until the time it is closed.. Basically a list of all the functions executed during runtime..
What is the best way about going about this? Should I just make each function when executed write a line to the file?
Say function foo gets executed..
In the debug.txt file it would look like
Foo successfully executed..
if it doesn't get to the end of foo
Foo failed to execute
(generally if foo fails the program will crash, but this will let me know exactly what went wrong.)