Specifically :
Any program like addition which does its normal functionality and generates its output like wise for every step in the program I need to verify the statements(I mean the program steps) are executed successfully or not. I knew we could use conditional loops and generate the log file statements to be printed but instead adding it seperately in the program, is there a way to do it automatically through the user defined checkpoints to generate our log file and debug it for the future reference.