I was wondering if there is a tool or component for Delphi that can track the execution of a method line by line and create a log file. Using such a tool, it is easy to compare how a method performs two sets of input by comparing two log files.
EDIT:
Let, say, there is a function
10: function MyFunction(aInput: Integer): Integer; 11: begin 12: if aInput > 10 then 13: Result := 10 14: else 15: Result := 0; 16: end;
I am looking for a tool that will give a log that will look like the following:
When aInput parameter is 1:
Line 10: 'function MyFunction(aInput: Integer): Integer;' Line 11: 'begin' Line 12: 'if aInput > 10 then' Line 15: 'Result := 0;' Line 16: 'end;'
and when aInput parameter is 11:
Line 10: 'function MyFunction(aInput: Integer): Integer;' Line 11: 'begin' Line 12: 'if aInput > 10 then' Line 13: 'Result := 10;' Line 16: 'end;'
The only information that the tool should need is the name of the function.
He likes to go through the method under the debugger, but automatically, writing down each line of code.
source share