I have huge code which has a bug and I have no knowledge of the code. The only thing I know is that when a particular input field is giiven a +ve value it generates correct output and is a -ve value is given an invalid output is generated. From the analysis of the output it was concluded that the issue could be due to improper initialization of a variable (garbage value). I believe the fastest way to resolve the issue would be the analysis of the variables present in the uncommon code of the two executions(success and failure). What I need now is a way to log the file name and line number of the code that was executed, in proper sequence. I'll be able to compare both the log files and determine the section of code that might have the bug. The code is in C and VS2010 is the available tool.
Thanks & Regards - Mustafa